-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WEB-4134 : Manage timestamping in coordination with ia.deliberations'…
… rest api
- Loading branch information
Showing
31 changed files
with
863 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser"> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from imio.smartweb.locales import SmartwebMessageFactory as _ | ||
from plone.dexterity.content import Item | ||
from zope import schema | ||
from zope.interface import implementer | ||
from zope.interface import Interface | ||
|
||
|
||
class IPublication(Interface): | ||
""" """ | ||
|
||
# title = schema.TextLine(title=_("Title"), required=True) | ||
|
||
# description = schema.Text(title=_("Description"), required=False) | ||
|
||
linked_publication = schema.Choice( | ||
vocabulary="imio.smartweb.vocabulary.IADeliberationsPublications", | ||
title=_("I.A. Deliberation publication"), | ||
required=True, | ||
default=None, | ||
) | ||
|
||
|
||
@implementer(IPublication) | ||
class Publication(Item): | ||
"""Publication class""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0"?> | ||
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
name="imio.smartweb.Publication" | ||
meta_type="Dexterity FTI" | ||
i18n:domain="imio.smartweb"> | ||
|
||
<!-- Basic properties --> | ||
<property | ||
i18n:translate="" | ||
name="title">Publication</property> | ||
<property | ||
i18n:translate="" | ||
name="description">IA.Deliberations : Publication</property> | ||
|
||
<property name="icon_expr">string:bounding-box-circles</property> | ||
|
||
<!-- Hierarchy control --> | ||
<property name="global_allow">False</property> | ||
|
||
<!-- Schema, class and security --> | ||
<!-- if we can add a page, we can add a page section --> | ||
<property name="add_permission">imio.smartweb.core.AddPage</property> | ||
<property name="klass">imio.smartweb.core.contents.Publication</property> | ||
<property name="schema">imio.smartweb.core.contents.IPublication</property> | ||
|
||
<!-- Enabled behaviors --> | ||
<property name="behaviors" purge="false"> | ||
<!--element value="plone.namefromtitle"/> | ||
<element value="plone.shortname"/> --> | ||
<element value="plone.imagecropping"/> | ||
<element value="plone.locking"/> | ||
<element value="solr.fields" /> | ||
</property> | ||
|
||
# get | ||
|
||
<!-- View information --> | ||
<property name="default_view">link_redirect_view</property> | ||
<property name="default_view_fallback">False</property> | ||
<property name="immediate_view">view</property> | ||
<property name="view_methods"> | ||
<element value="link_redirect_view"/> | ||
</property> | ||
|
||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.