Add 5 PFWB content types #22019

- pfwb.copminutes
- pfwb.copnote
- pfwb.informationnote
- pfwb.memorandum
- pfwb.notice
This commit is contained in:
Nicolas Demonte 2019-12-09 14:05:31 +01:00
parent 1234cf7302
commit 7fda8bdd75
9 changed files with 412 additions and 1 deletions

View File

@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: pfwbged.basecontent\n"
"POT-Creation-Date: 2014-03-05 10:46+0000\n"
"POT-Creation-Date: 2019-12-04 12:38+0000\n"
"PO-Revision-Date: 2013-07-03 11:56+0100\n"
"Last-Translator: Cédric Messiant <cedricmessiant@ecreall.com>\n"
"Language-Team: French\n"
@ -35,6 +35,14 @@ msgstr "Décision du bureau"
msgid "Board Minutes"
msgstr "PV de réunion de bureau"
#: ../profiles/default/types/pfwb.copminutes.xml
msgid "Conference of Presidents Minutes"
msgstr "PV de la conférence des Présidents ou Bureau élargi"
#: ../profiles/default/types/pfwb.copnote.xml
msgid "Conference of Presidents Note"
msgstr "Note à la conférence des Présidents ou Bureau élargi"
#: ../profiles/default/types/pfwb.noteforboard.xml
msgid "Create board decision"
msgstr "Créer une décision du bureau"
@ -51,6 +59,10 @@ msgstr "Document générique"
msgid "Green Board Decision"
msgstr "Décision du bureau vert"
#: ../profiles/default/types/pfwb.informationnote.xml
msgid "Information note"
msgstr "Note d'information"
#: ../profiles/default/types/pfwb.insurancedocument.xml
msgid "Insurance Document"
msgstr "Document d'assurance"
@ -67,6 +79,10 @@ msgstr "Facture"
msgid "Medical Certificate"
msgstr "Certificat médical"
#: ../profiles/default/types/pfwb.memorandum.xml
msgid "Memorandum"
msgstr "Note de service"
#: ../profiles/default/types/pfwb.minutes.xml
msgid "Minutes"
msgstr "PV de réunion"
@ -79,6 +95,10 @@ msgstr "Aucun"
msgid "Note for Board"
msgstr "Note au bureau"
#: ../profiles/default/types/pfwb.notice.xml
msgid "Notice"
msgstr "Avis"
#: ../profiles/default/types/pfwb.pressrelease.xml
msgid "Press Release"
msgstr "Communiqué de presse"

View File

@ -29,6 +29,14 @@ msgstr ""
msgid "Board Minutes"
msgstr ""
#: ../profiles/default/types/pfwb.copminutes.xml
msgid "Conference of Presidents Minutes"
msgstr ""
#: ../profiles/default/types/pfwb.copnote.xml
msgid "Conference of Presidents Note"
msgstr ""
#: ../profiles/default/types/pfwb.noteforboard.xml
msgid "Create board decision"
msgstr ""
@ -41,6 +49,10 @@ msgstr ""
msgid "Green Board Decision"
msgstr ""
#: ../profiles/default/types/pfwb.informationnote.xml
msgid "Information note"
msgstr ""
#: ../profiles/default/types/pfwb.insurancedocument.xml
msgid "Insurance Document"
msgstr ""
@ -57,6 +69,10 @@ msgstr ""
msgid "Medical Certificate"
msgstr ""
#: ../profiles/default/types/pfwb.memorandum.xml
msgid "Memorandum"
msgstr ""
#: ../profiles/default/types/pfwb.minutes.xml
msgid "Minutes"
msgstr ""
@ -69,6 +85,10 @@ msgstr ""
msgid "Note for Board"
msgstr ""
#: ../profiles/default/types/pfwb.notice.xml
msgid "Notice"
msgstr ""
#: ../profiles/default/types/pfwb.pressrelease.xml
msgid "Press Release"
msgstr ""

View File

@ -9,6 +9,11 @@
<object name="pfwb.invoice" meta_type="Dexterity FTI"/>
<object name="pfwb.noteforboard" meta_type="Dexterity FTI"/>
<object name="pfwb.boardminutes" meta_type="Dexterity FTI"/>
<object name="pfwb.memorandum" meta_type="Dexterity FTI"/>
<object name="pfwb.notice" meta_type="Dexterity FTI"/>
<object name="pfwb.informationnote" meta_type="Dexterity FTI"/>
<object name="pfwb.copnote" meta_type="Dexterity FTI"/>
<object name="pfwb.copminutes" meta_type="Dexterity FTI"/>
<object name="pfwb.apfincomingmail" meta_type="Dexterity FTI"/>
<object name="pfwb.apfoutgoingmail" meta_type="Dexterity FTI"/>

View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<object name="pfwb.copminutes" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Conference of Presidents Minutes</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbdocument_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.ICopMinutes</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.CopMinutes</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>

View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<object name="pfwb.copnote" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Conference of Presidents Note</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbdocument_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.ICopNote</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.CopNote</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>

View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<object name="pfwb.informationnote" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Information note</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbdocument_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.IInformationNote</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.InformationNote</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>

View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<object name="pfwb.memorandum" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Memorandum</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbdocument_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.IMemorandum</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.Memorandum</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>

View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<object name="pfwb.notice" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Basic metadata -->
<property name="title" i18n:translate="">Notice</property>
<property name="description" i18n:translate=""></property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbdocument_icon.png</property>
<property name="global_allow">True</property>
<property name="allow_discussion">False</property>
<!-- Behaviors -->
<property name="behaviors" purge="True">
<element value="plone.app.content.interfaces.INameFromTitle"/>
<element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
<element value="pfwbged.basecontent.behaviors.IPfwbDocument"/>
</property>
<!-- Contained Types -->
<property name="filter_content_types">True</property>
<property name="allowed_content_types" purge="False">
<element value="dmsmainfile"/>
<element value="dmsappendixfile"/>
<element value="information"/>
<element value="opinion"/>
<element value="task"/>
<element value="validation"/>
<element value="pfwbgedlink"/>
</property>
<!-- schema interface -->
<property name="schema">pfwbged.basecontent.types.INotice</property>
<!-- class used for content items -->
<property name="klass">pfwbged.basecontent.types.Notice</property>
<!-- add permission -->
<property name="add_permission">cmf.AddPortalContent</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- Actions -->
<action title="View" action_id="view" category="object" condition_expr=""
url_expr="string:${object_url}" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>

View File

@ -1,3 +1,5 @@
from collective.dms.mailcontent.dmsmail import DmsOutgoingMail
from collective.dms.mailcontent.dmsmail import IDmsOutgoingMail
from zope import schema
from zope.interface import implements
@ -206,3 +208,52 @@ class IApfOutgoingMail(IDmsIncomingMail):
class ApfOutgoingMail(DmsIncomingMail):
implements(IApfOutgoingMail)
class IMemorandum(IDmsOutgoingMail):
"""
"""
class Memorandum(DmsOutgoingMail):
implements(IMemorandum)
class INotice(IDmsOutgoingMail):
"""
"""
class Notice(DmsOutgoingMail):
implements(INotice)
class IInformationNote(IDmsOutgoingMail):
"""
"""
class InformationNote(DmsOutgoingMail):
implements(IInformationNote)
class ICopNote(IDmsOutgoingMail):
"""
"""
form.omitted("recipients")
class CopNote(DmsOutgoingMail):
implements(ICopNote)
class ICopMinutes(IDmsOutgoingMail):
"""
"""
form.omitted("recipients")
class CopMinutes(DmsOutgoingMail):
implements(ICopMinutes)