-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from IMIO/autopublishing
Autopublishing
- Loading branch information
Showing
8 changed files
with
317 additions
and
1 deletion.
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
140 changes: 140 additions & 0 deletions
140
src/imio/directory/policy/profiles/default/registry/autopublishing.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,140 @@ | ||
<?xml version="1.0"?> | ||
<registry | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
i18n:domain="imio.smartweb"> | ||
|
||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.clear_expiration_on_publish" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="clear_expiration_on_publish"> | ||
<value>True</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.overwrite_expiration_on_retract" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="overwrite_expiration_on_retract"> | ||
<value>True</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.dry_run" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="dry_run"> | ||
<value>False</value> | ||
</record> | ||
|
||
<!-- Publishing complex record --> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.date_index" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="date_index"> | ||
<field type="plone.registry.field.TextLine"> | ||
<default>effective</default> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description> | ||
<missing_value>effective</missing_value> | ||
<required>False</required> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title> | ||
</field> | ||
<value>effective</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.initial_state" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="initial_state"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_initial_state">Initial workflow state</title> | ||
</field> | ||
<value>private</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.portal_types" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="portal_types"> | ||
<field type="plone.registry.field.Tuple"> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description> | ||
<missing_value/> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="">Content types</title> | ||
<value_type type="plone.registry.field.Choice"> | ||
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary> | ||
</value_type> | ||
</field> | ||
<value> | ||
<element>Collection</element> | ||
<element>imio.directory.Entity</element> | ||
<element>imio.directory.Contact</element> | ||
</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.transition" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="transition"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_transition">Transition from initial state</title> | ||
</field> | ||
<value>publish</value> | ||
</record> | ||
|
||
<!-- Retracting complex record --> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.date_index" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="date_index"> | ||
<field type="plone.registry.field.TextLine"> | ||
<default>effective</default> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description> | ||
<missing_value>effective</missing_value> | ||
<required>False</required> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title> | ||
</field> | ||
<value>effective</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.initial_state" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="initial_state"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_initial_state">Initial workflow state</title> | ||
</field> | ||
<value>published</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.portal_types" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="portal_types"> | ||
<field type="plone.registry.field.Tuple"> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description> | ||
<missing_value/> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="">Content types</title> | ||
<value_type type="plone.registry.field.Choice"> | ||
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary> | ||
</value_type> | ||
</field> | ||
<value> | ||
<element>Collection</element> | ||
<element>imio.directory.Entity</element> | ||
<element>imio.directory.Contact</element> | ||
</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.transition" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="transition"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_transition">Transition from initial state</title> | ||
</field> | ||
<value>retract</value> | ||
</record> | ||
|
||
</registry> |
File renamed without changes.
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,9 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope"> | ||
|
||
<subscriber | ||
for="collective.timedevents.interfaces.IIntervalTicks15Event" | ||
handler="collective.autopublishing.eventhandler.autopublish_handler" | ||
/> | ||
|
||
</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
140 changes: 140 additions & 0 deletions
140
src/imio/directory/policy/upgrades/profiles/1002_to_1003/registry/autopublishing.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,140 @@ | ||
<?xml version="1.0"?> | ||
<registry | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
i18n:domain="imio.smartweb"> | ||
|
||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.clear_expiration_on_publish" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="clear_expiration_on_publish"> | ||
<value>True</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.overwrite_expiration_on_retract" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="overwrite_expiration_on_retract"> | ||
<value>True</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema.dry_run" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSettingsSchema" | ||
field="dry_run"> | ||
<value>False</value> | ||
</record> | ||
|
||
<!-- Publishing complex record --> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.date_index" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="date_index"> | ||
<field type="plone.registry.field.TextLine"> | ||
<default>effective</default> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description> | ||
<missing_value>effective</missing_value> | ||
<required>False</required> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title> | ||
</field> | ||
<value>effective</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.initial_state" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="initial_state"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_initial_state">Initial workflow state</title> | ||
</field> | ||
<value>private</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.portal_types" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="portal_types"> | ||
<field type="plone.registry.field.Tuple"> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description> | ||
<missing_value/> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="">Content types</title> | ||
<value_type type="plone.registry.field.Choice"> | ||
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary> | ||
</value_type> | ||
</field> | ||
<value> | ||
<element>Collection</element> | ||
<element>imio.directory.Entity</element> | ||
<element>imio.directory.Contact</element> | ||
</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.publish_actions/r0.transition" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="transition"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_transition">Transition from initial state</title> | ||
</field> | ||
<value>publish</value> | ||
</record> | ||
|
||
<!-- Retracting complex record --> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.date_index" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="date_index"> | ||
<field type="plone.registry.field.TextLine"> | ||
<default>effective</default> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_date_index">By default publishing date (the 'effective' index) is used for 'publish actions', and expiration date (the 'expires' index) is used for 'retract actions'. If a custom method is to be used for the date, enter index_id|object_method_id. If index_id = method_id just enter index_id.</description> | ||
<missing_value>effective</missing_value> | ||
<required>False</required> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_date_index">Transaction trigger date catalog index / method</title> | ||
</field> | ||
<value>effective</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.initial_state" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="initial_state"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_initial_state">Initial workflow state</title> | ||
</field> | ||
<value>published</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.portal_types" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="portal_types"> | ||
<field type="plone.registry.field.Tuple"> | ||
<description xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="help_ap_portaltypes">Content types this rule applies to.</description> | ||
<missing_value/> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="">Content types</title> | ||
<value_type type="plone.registry.field.Choice"> | ||
<vocabulary>plone.app.vocabularies.ReallyUserFriendlyTypes</vocabulary> | ||
</value_type> | ||
</field> | ||
<value> | ||
<element>Collection</element> | ||
<element>imio.directory.Entity</element> | ||
<element>imio.directory.Contact</element> | ||
</value> | ||
</record> | ||
<record name="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification.retract_actions/r0.transition" | ||
interface="collective.autopublishing.browser.autopublishsettings.IAutopublishSpecification" | ||
field="transition"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title xmlns:ns0="http://xml.zope.org/namespaces/i18n" | ||
ns0:domain="collective.autopublishing" | ||
ns0:translate="label_transition">Transition from initial state</title> | ||
</field> | ||
<value>retract</value> | ||
</record> | ||
|
||
</registry> |