Commit 73404e10 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Merge branch 'master' of https://git.erp5.org/repos/erp5

parents aeea02cf bf6e9c01
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Notification Message" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>079801c12586a98834168bdfb9bfd929</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>erp5-subscription.notification</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_subscription_notification</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value> <string>en</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Notification Message</string> </value>
</item>
<item>
<key> <string>text_content</string> </key>
<value> <string encoding="cdata"><![CDATA[
Hello ${user},<br/>\n
You have requested one user.\n
Please access this url to enable your login.\n
<br/>\n
<a href="${active_user_link}">${active_user_link}</a>\n
<br/>\n
Thank you
]]></string> </value>
</item>
<item>
<key> <string>text_content_substitution_mapping_method_id</string> </key>
<value> <string>NotificationMessage_getSubstitutionMappingDictFromArgument</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Welcome</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value> <string>001</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Web Page" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Change_local_roles_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>1b1c6054e5cafec4310909802f522f8b</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>erp5-Contract</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5-Contract</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Web Page</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>text_content</string> </key>
<value> <string>Copyright ERP5 © 2011</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>ERP5 Contract</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""Close all person assignemnt \n
<value> <string>"""Close all person assignment \n
Parameters:\n
role -- Role category item (List of String, default: [])\n
comment -- Workflow transition comment (String, default: "")\n
......
......@@ -50,8 +50,8 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""Create an assingment for the person depending credential request configuration\n
Proxy: Assignee -- allow to update the related assignement"""\n
<value> <string>"""Create an assignment for the person depending credential request configuration\n
Proxy: Assignee -- allow to update the related assignment"""\n
\n
# check the script is not called from a url\n
if REQUEST is not None:\n
......@@ -61,15 +61,14 @@ person = context.getDestinationDecisionValue(portal_type="Person")\n
organisation = context.getDestinationDecisionValue(portal_type="Organisation")\n
\n
assignment_configuration = {}\n
#Look on current assignement\n
#Look on current assignment\n
old_role_list = context.portal_categories.role.getCategoryChildLogicalPathItemList()[1:]\n
#old_role_list look like [[\'title\',\'logical_path\'],]\n
old_role_list = [ category[1] for category in old_role_list]\n
old_role_list = [category[1] for category in old_role_list]\n
for role in context.getRoleList():\n
old_role_list.remove(role)\n
\n
\n
#Close old assignement\n
#Close old assignment\n
open_assignment_list = context.CredentialRequest_closePersonAssignment(old_role_list)\n
\n
#Initialisation\n
......@@ -79,7 +78,7 @@ delay = today+assignment_duration\n
\n
current_assignment_list = {}\n
for assignment in open_assignment_list:\n
role = assignement.getRole()\n
role = assignment.getRole()\n
if role in current_assignment_list:\n
current_assignment_list[role].append(assignment)\n
else:\n
......
340
\ No newline at end of file
341
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment