Commit aa7e7631 authored by Julien Muchembled's avatar Julien Muchembled

cf previous commit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25618 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a453f33a
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>def normalise(s):\n
while s.startswith(\'_\'):\n
s = s[1:]\n
return s\n
\n
def compareId(a, b):\n
return cmp(normalise(a.id), normalise(b.id))\n
state_list = context.getStateURIList()\n
base_uri = context.getURI()\n
result = map(\n
lambda x: context.asContext(id=x[0].split(\'.\')[-1], \n
title=x[1], \n
owner_permissions=x[2],\n
assignor_permissions=x[3],\n
assignee_permissions=x[4],\n
associate_permissions=x[5],\n
author_permissions=x[6],\n
auditor_permissions=x[7],\n
uri=x[0], base_uri=base_uri),\n
state_list \n
)\n
result.sort(compareId)\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>kw</string>
<string>normalise</string>
<string>compareId</string>
<string>_getattr_</string>
<string>context</string>
<string>state_list</string>
<string>base_uri</string>
<string>map</string>
<string>result</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>DCWorkflowDocumentationHelper_getWorkflowStateList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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 encoding="cdata"><![CDATA[
portal_url = context.getPortalObject().portal_classes.absolute_url()\n
o = context.getPortalObject().restrictedTraverse(brain.base_uri)\n
uri = brain.base_uri+\'/states%23\'+brain.id\n
return "%s/DocumentationHelper_viewDocumentationHelper?uri=%s&class_name=DCWorkflowStateDocumentationHelper" % \\\n
(portal_url, uri)\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain=None, selection=None, **kwd</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>kwd</string>
<string>_getattr_</string>
<string>context</string>
<string>portal_url</string>
<string>o</string>
<string>uri</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -62,12 +62,14 @@
<dictionary>
<item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
......@@ -96,7 +98,9 @@
</item>
<item>
<key> <string>url_columns</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
</dictionary>
</value>
......@@ -110,37 +114,13 @@
<value>
<list>
<tuple>
<string>id</string>
<string>getId</string>
<string>Id</string>
</tuple>
<tuple>
<string>title</string>
<string>getTitle</string>
<string>Title</string>
</tuple>
<tuple>
<string>owner_permissions</string>
<string>Owner</string>
</tuple>
<tuple>
<string>assignor_permissions</string>
<string>Assignor</string>
</tuple>
<tuple>
<string>assignee_permissions</string>
<string>Assignee</string>
</tuple>
<tuple>
<string>associate_permissions</string>
<string>Associate</string>
</tuple>
<tuple>
<string>author_permissions</string>
<string>Author</string>
</tuple>
<tuple>
<string>auditor_permissions</string>
<string>Auditor</string>
</tuple>
</list>
</value>
</item>
......@@ -159,7 +139,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
<item>
......@@ -177,40 +157,7 @@
<item>
<key> <string>url_columns</string> </key>
<value>
<list>
<tuple>
<string>id</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>title</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>owner_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>assignor_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>assignee_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>associate_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>author_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
<tuple>
<string>auditor_permissions</string>
<string>DCWorkflowDocumentationHelper_getWorkflowStateUrl</string>
</tuple>
</list>
<list/>
</value>
</item>
</dictionary>
......@@ -230,12 +177,44 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.DCWorkflowDocumentationHelper_getWorkflowStateList() != []</string> </value>
<value> <string>python: field.get_orig_value(\'columns\') + here.getRoleColumnList()</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/getStateItemList</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(x, \'getViewUrl\') for x,y in field.get_value(\'columns\')]</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
......@@ -246,7 +225,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>DCWorkflowDocumentationHelper_getWorkflowStateList</string> </value>
<value> <string>getStateItemList</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -100,12 +100,7 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_owner_permissions</string>
<string>my_assignor_permissions</string>
<string>my_assignee_permissions</string>
<string>my_associate_permissions</string>
<string>my_author_permissions</string>
<string>my_auditor_permissions</string>
<string>my_permissions</string>
</list>
</value>
</item>
......
166
\ No newline at end of file
167
\ 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