Commit edab9c9d authored by Aurel's avatar Aurel

add init script on account incident and improve some getBaobab script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8745 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 201a03c8
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
<value> <string></string> </value> <value> <string>AccountIncident_init</string> </value>
</item> </item>
<item> <item>
<key> <string>property_sheet_list</string> </key> <key> <string>property_sheet_list</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>user_site = context.Baobab_getUserAssignedSiteList()[0]\n
context.edit(source=user_site)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_cash/AccountIncident_init</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args, **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>args</string>
<string>kw</string>
<string>_getitem_</string>
<string>_getattr_</string>
<string>context</string>
<string>user_site</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>AccountIncident_init</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -68,14 +68,7 @@ ...@@ -68,14 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>old_group_list = context.get_local_roles()\n <value> <string>return "%s/surface/salle_de_tri/encaisse_des_differences" %(context.getSource(),)\n
for group, role_list in old_group_list:\n
if \'Owner\' in role_list:\n
user = group\n
\n
user_site = context.Baobab_getUserAssignedSiteList(user)[0]\n
\n
return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -124,13 +117,6 @@ return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n ...@@ -124,13 +117,6 @@ return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>old_group_list</string>
<string>_getiter_</string>
<string>group</string>
<string>role_list</string>
<string>user</string>
<string>_getitem_</string>
<string>user_site</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -68,14 +68,7 @@ ...@@ -68,14 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>old_group_list = context.get_local_roles()\n <value> <string>return "%s/surface/salle_de_tri/encaisse_des_differences" %(context.getSource(),)\n
for group, role_list in old_group_list:\n
if \'Owner\' in role_list:\n
user = group\n
\n
user_site = context.Baobab_getUserAssignedSiteList(user)[0]\n
\n
return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -124,13 +117,6 @@ return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n ...@@ -124,13 +117,6 @@ return "%s/surface/salle_de_tri/encaisse_des_differences" %(user_site,)\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>old_group_list</string>
<string>_getiter_</string>
<string>group</string>
<string>role_list</string>
<string>user</string>
<string>_getitem_</string>
<string>user_site</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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