Commit 03de5d3b authored by Bartek Górny's avatar Bartek Górny

2006-02-22 BG

* finished (and renamed) local roles interaction workflow
* assigned portal types to appropriate workflows
* made File a non-terminating leaf (not in this bt5)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 479e2cd9
...@@ -13,18 +13,18 @@ ...@@ -13,18 +13,18 @@
</chain> </chain>
<chain> <chain>
<type>Presentation</type> <type>Presentation</type>
<workflow>document_publication_workflow, edit_workflow, ooo_interaction_workflow</workflow> <workflow>document_publication_workflow, edit_workflow, ooo_interaction_workflow, local_permission_interaction_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Role Definition</type> <type>Role Definition</type>
<workflow>edit_workflow, local_permission_workflow</workflow> <workflow>local_permission_interaction_workflow, edit_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Spreadsheet</type> <type>Spreadsheet</type>
<workflow>document_publication_workflow, ooo_interaction_workflow, edit_workflow</workflow> <workflow>local_permission_interaction_workflow, document_publication_workflow, ooo_interaction_workflow, edit_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Text</type> <type>Text</type>
<workflow>edit_workflow, ooo_interaction_workflow, document_publication_workflow</workflow> <workflow>local_permission_interaction_workflow, ooo_interaction_workflow, edit_workflow, document_publication_workflow</workflow>
</chain> </chain>
</workflow_chain> </workflow_chain>
\ No newline at end of file
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
<string>Role</string> <string>Role</string>
</tuple> </tuple>
<tuple> <tuple>
<string>agent_title_list</string> <string>RoleDefinition_formatAgents</string>
<string>Agents</string> <string>Agents</string>
</tuple> </tuple>
</list> </list>
...@@ -430,6 +430,10 @@ ...@@ -430,6 +430,10 @@
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListBox" module="Products.ERP5Form.ListBox"/> <tuple>
<tuple/> <string>Products.ERP5Form.ListBox</string>
<string>ListBox</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -334,6 +337,10 @@ ...@@ -334,6 +337,10 @@
<string>id</string> <string>id</string>
<string>ID</string> <string>ID</string>
</tuple> </tuple>
<tuple>
<string>getPortalType</string>
<string>Type</string>
</tuple>
<tuple> <tuple>
<string>reference</string> <string>reference</string>
<string>Reference</string> <string>Reference</string>
...@@ -476,6 +483,10 @@ ...@@ -476,6 +483,10 @@
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
...@@ -559,8 +570,11 @@ ...@@ -559,8 +570,11 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Method" module="Products.Formulator.MethodField"/> <tuple>
<tuple/> <string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -575,8 +589,11 @@ ...@@ -575,8 +589,11 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Method" module="Products.Formulator.MethodField"/> <tuple>
<tuple/> <string>Products.Formulator.MethodField</string>
<string>Method</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -80,6 +80,9 @@ ...@@ -80,6 +80,9 @@
# ERP5Type_asSecurityGroupId can also return a list of users whenever a category points\n # ERP5Type_asSecurityGroupId can also return a list of users whenever a category points\n
# to a Person instance. This is useful to implement user based local role assignments\n # to a Person instance. This is useful to implement user based local role assignments\n
\n \n
context.log(script.getId(),category_order)\n
context.log(script.getId(),kw)\n
\n
code_list = []\n code_list = []\n
user_list = []\n user_list = []\n
\n \n
...@@ -116,7 +119,10 @@ for base_category in category_order:\n ...@@ -116,7 +119,10 @@ for base_category in category_order:\n
code_list.append(category_code)\n code_list.append(category_code)\n
\n \n
# Return a list of users or a single group\n # Return a list of users or a single group\n
if user_list: return user_list\n if user_list: \n
context.log(\'user_list\',user_list)\n
return user_list\n
context.log(\'code_list\',code_list)\n
return \'_\'.join(code_list)\n return \'_\'.join(code_list)\n
</string> </value> </string> </value>
</item> </item>
...@@ -162,11 +168,13 @@ return \'_\'.join(code_list)\n ...@@ -162,11 +168,13 @@ return \'_\'.join(code_list)\n
<tuple> <tuple>
<string>category_order</string> <string>category_order</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>script</string>
<string>code_list</string> <string>code_list</string>
<string>user_list</string> <string>user_list</string>
<string>None</string> <string>None</string>
<string>list</string> <string>list</string>
<string>_getattr_</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>base_category</string> <string>base_category</string>
<string>_getitem_</string> <string>_getitem_</string>
...@@ -174,7 +182,6 @@ return \'_\'.join(code_list)\n ...@@ -174,7 +182,6 @@ return \'_\'.join(code_list)\n
<string>same_type</string> <string>same_type</string>
<string>category</string> <string>category</string>
<string>category_path</string> <string>category_path</string>
<string>context</string>
<string>category_object</string> <string>category_object</string>
<string>user_name</string> <string>user_name</string>
<string>category_code</string> <string>category_code</string>
......
...@@ -86,7 +86,7 @@ if object is None:\n ...@@ -86,7 +86,7 @@ if object is None:\n
\n \n
for base_category in base_category_list:\n for base_category in base_category_list:\n
category_list.append({base_category: object.getCategoryMembershipList(base_category)})\n category_list.append({base_category: object.getCategoryMembershipList(base_category)})\n
\n context.log(script.getId(),category_list)\n
return category_list\n return category_list\n
</string> </value> </string> </value>
</item> </item>
...@@ -147,6 +147,8 @@ return category_list\n ...@@ -147,6 +147,8 @@ return category_list\n
<string>_getiter_</string> <string>_getiter_</string>
<string>base_category</string> <string>base_category</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string>
<string>script</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return \',\'.join(brain.getObject().getAgentTitleList())\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain,selection</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>brain</string>
<string>selection</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>RoleDefinition_formatAgents</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>Default</string> <string>left</string>
<string>right</string> <string>right</string>
</list> </list>
</value> </value>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>Default</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>my_role_name</string> <string>my_role_name</string>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="MultiRelationStringField" module="Products.ERP5Form.MultiRelationField"/> <tuple>
<tuple/> <string>Products.ERP5Form.MultiRelationField</string>
<string>MultiRelationStringField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -500,10 +503,6 @@ ...@@ -500,10 +503,6 @@
<string>Person</string> <string>Person</string>
<string>Person</string> <string>Person</string>
</tuple> </tuple>
<tuple>
<string>Organisation</string>
<string>Organisation</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -3,8 +3,11 @@ ...@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/> <tuple>
<tuple/> <string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -278,7 +281,7 @@ ...@@ -278,7 +281,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/valid_roles</string> </value> <value> <string>python: [r for r in here.valid_roles() if r!=\'Owner\']</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.InteractionWorkflow</string>
<string>InteractionWorkflowDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>local_permission_interaction_workflow</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>Document_assignRoleToGroup</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>DocumentAssignRoles</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_edit</string>
</list>
</value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Presentation</string>
<string>Spreadsheet</string>
<string>Text</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<key> <string>activate_script_name</string> </key> <key> <string>activate_script_name</string> </key>
<value> <value>
<list> <list>
<string>Base_assignRoleToSecurityGroup</string> <string>Parent_updateAllLocalRoles</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Update local permissions after update</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
...@@ -56,12 +56,15 @@ ...@@ -56,12 +56,15 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>change_local_permissions</string> </value> <value> <string>UpdateLocalRoles</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list/> <list>
<string>_edit</string>
<string>manage_beforeDelete</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -80,11 +83,11 @@ ...@@ -80,11 +83,11 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Change Local Permissions</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>trigger_type</string> </key> <key> <string>trigger_type</string> </key>
<value> <int>0</int> </value> <value> <int>2</int> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>document = sci.object\n <value> <string>context.log(script.getId(),\'done\')\n
document.getParentValue().assignRoleToSecurityGroup()\n sci.object.assignRoleToSecurityGroup()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -114,7 +114,8 @@ document.getParentValue().assignRoleToSecurityGroup()\n ...@@ -114,7 +114,8 @@ document.getParentValue().assignRoleToSecurityGroup()\n
<tuple> <tuple>
<string>sci</string> <string>sci</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>document</string> <string>context</string>
<string>script</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -131,7 +132,7 @@ document.getParentValue().assignRoleToSecurityGroup()\n ...@@ -131,7 +132,7 @@ document.getParentValue().assignRoleToSecurityGroup()\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Base_assignRoleToSecurityGroup</string> </value> <value> <string>Document_assignRoleToGroup</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change.object.getParent().assignRoleToSecurityGroup()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Parent_updateAllLocalRoles</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2006-02-22 BG
* finished (and renamed) local roles interaction workflow
* assigned portal types to appropriate workflows
* made File a non-terminating leaf (not in this bt5)
2006-07-20 BG 2006-07-20 BG
* Completed document publication workflow * Completed document publication workflow
* Fixed fields in document-related forms * Fixed fields in document-related forms
......
...@@ -5,12 +5,15 @@ Graphic | ooo_interaction_workflow ...@@ -5,12 +5,15 @@ Graphic | ooo_interaction_workflow
Image | edit_workflow Image | edit_workflow
Presentation | document_publication_workflow Presentation | document_publication_workflow
Presentation | edit_workflow Presentation | edit_workflow
Presentation | local_permission_interaction_workflow
Presentation | ooo_interaction_workflow Presentation | ooo_interaction_workflow
Role Definition | edit_workflow Role Definition | edit_workflow
Role Definition | local_permission_workflow Role Definition | local_permission_interaction_workflow
Spreadsheet | document_publication_workflow Spreadsheet | document_publication_workflow
Spreadsheet | edit_workflow Spreadsheet | edit_workflow
Spreadsheet | local_permission_interaction_workflow
Spreadsheet | ooo_interaction_workflow Spreadsheet | ooo_interaction_workflow
Text | document_publication_workflow Text | document_publication_workflow
Text | edit_workflow Text | edit_workflow
Text | local_permission_interaction_workflow
Text | ooo_interaction_workflow Text | ooo_interaction_workflow
\ No newline at end of file
document_publication_workflow document_publication_workflow
document_staging_workflow document_staging_workflow
local_permission_workflow local_permission_interaction_workflow
ooo_interaction_workflow ooo_interaction_workflow
\ 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