Skip to content

Commit

Permalink
Upgraded products and upgrade script for pre-manager state
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Nov 6, 2018
1 parent e43c97e commit 82b202e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
26 changes: 24 additions & 2 deletions run-scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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()
6 changes: 3 additions & 3 deletions versions-base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82b202e

Please sign in to comment.