Commit 70ca41b8 authored by Lucas Carvalho's avatar Lucas Carvalho

2010-10-11 lucas

* Now portal_type_group_list is an optional param for the script BaseType_copyRoleList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce57c6af
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -57,7 +54,7 @@ ...@@ -57,7 +54,7 @@
cb_data = context.manage_copyObjects(\n cb_data = context.manage_copyObjects(\n
ids=[r.getId() for r in context.contentValues(portal_type=\'Role Information\')])\n ids=[r.getId() for r in context.contentValues(portal_type=\'Role Information\')])\n
\n \n
if portal_type_group_list:\n if portal_type_group_list is not None:\n
for ti in context.portal_types.contentValues():\n for ti in context.portal_types.contentValues():\n
if ti == context or ti.getId() in portal_type_list:\n if ti == context or ti.getId() in portal_type_list:\n
continue\n continue\n
...@@ -87,7 +84,7 @@ return context.Base_redirect(form_id,\n ...@@ -87,7 +84,7 @@ return context.Base_redirect(form_id,\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>remove_existing_roles, portal_type_list, portal_type_group_list, form_id=\'view\', **kw</string> </value> <value> <string>remove_existing_roles, portal_type_list, portal_type_group_list=None, form_id=\'view\', **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -127,6 +124,7 @@ return context.Base_redirect(form_id,\n ...@@ -127,6 +124,7 @@ return context.Base_redirect(form_id,\n
<string>_getiter_</string> <string>_getiter_</string>
<string>r</string> <string>r</string>
<string>cb_data</string> <string>cb_data</string>
<string>None</string>
<string>ti</string> <string>ti</string>
<string>group</string> <string>group</string>
<string>_getitem_</string> <string>_getitem_</string>
...@@ -144,6 +142,7 @@ return context.Base_redirect(form_id,\n ...@@ -144,6 +142,7 @@ return context.Base_redirect(form_id,\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<none/>
<string>view</string> <string>view</string>
</tuple> </tuple>
</value> </value>
......
2010-10-11 lucas
* Now portal_type_group_list is an optional param for the script BaseType_copyRoleList.
2010-03-02 yusei 2010-03-02 yusei
* Remove short title. * Remove short title.
......
613 614
\ No newline at end of file \ 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