diff --git a/run-scripts.py b/run-scripts.py index 3718df2..870b104 100644 --- a/run-scripts.py +++ b/run-scripts.py @@ -65,8 +65,24 @@ def script3(): def script4(): - verbose('Correcting ckeditor skin on %s' % obj.absolute_url_path()) - obj.portal_properties.ckeditor_properties.skin = 'moono-lisa' + verbose('Setting imio.dms.mail configuration annotation on %s' % obj.absolute_url_path()) + from collections import OrderedDict + from imio.dms.mail.utils import set_dms_config + set_dms_config(['review_levels', 'dmsincomingmail'], + OrderedDict([('dir_general', {'st': ['proposed_to_manager']}), + ('_validateur', {'st': ['proposed_to_service_chief'], 'org': 'treating_groups'})])) + set_dms_config(['review_levels', 'task'], + OrderedDict([('_validateur', {'st': ['to_assign', 'realized'], 'org': 'assigned_group'})])) + set_dms_config(['review_levels', 'dmsoutgoingmail'], + OrderedDict([('_validateur', {'st': ['proposed_to_service_chief'], 'org': 'treating_groups'})])) + set_dms_config(['review_states', 'dmsincomingmail'], + OrderedDict([('proposed_to_manager', {'group': 'dir_general'}), + ('proposed_to_service_chief', {'group': '_validateur', 'org': 'treating_groups'})])) + set_dms_config(['review_states', 'task'], + OrderedDict([('to_assign', {'group': '_validateur', 'org': 'assigned_group'}), + ('realized', {'group': '_validateur', 'org': 'assigned_group'})])) + set_dms_config(['review_states', 'dmsoutgoingmail'], + OrderedDict([('proposed_to_service_chief', {'group': '_validateur', 'org': 'treating_groups'})])) transaction.commit() info = ["You can pass following parameters (with the first one always script number):", "1: run profile step", @@ -377,3 +393,9 @@ def script4_18(): verbose('Adding mailing on {} ({})'.format(brain.getPath(), brain.Title)) ob.mailing_loop_template = ml_uid transaction.commit() + + +def script4_19(): + verbose('Correcting ckeditor skin on %s' % obj.absolute_url_path()) + obj.portal_properties.ckeditor_properties.skin = 'moono-lisa' + transaction.commit() diff --git a/versions-base.cfg b/versions-base.cfg index 8db3fbd..aae8c0e 100644 --- a/versions-base.cfg +++ b/versions-base.cfg @@ -37,11 +37,11 @@ collective.upgrade = 1.3 collective.usernamelogger = 1.4 collective.wfadaptations = 0.1 communesplone.layout = 4.3.8.1 -dexterity.localroles = 1.2 +dexterity.localroles = 1.3 dexterity.localrolesfield = 1.2 ecreall.helpers.testing = 1.7 ftw.labels = 1.3.0 -imio.actionspanel = 1.35 +imio.actionspanel = 1.37 # branch 1.x imio.dashboard = 1.7 imio.dms.policy = 2.0.post1 @@ -131,7 +131,7 @@ icalendar = 4.0.2 plone.event = 1.3.4 # Required by: -# imio.actionspanel==1.32 +# imio.actionspanel==1.37 collective.fingerpointing = 1.7 file-read-backwards = 2.0.0 # needed to upgrade from zope toolkit for fingerpointing