diff --git a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BaseType_copyRoleList.xml b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BaseType_copyRoleList.xml index ed98344ba2becf1e6f1773195e29801aa8d29452..f14accfd699756a93516328f69bb1332f6c8a314 100644 --- a/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BaseType_copyRoleList.xml +++ b/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_toolbox/BaseType_copyRoleList.xml @@ -2,10 +2,7 @@ <ZopeData> <record id="1" aka="AAAAAAAAAAE="> <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> </pickle> <pickle> <dictionary> @@ -57,7 +54,7 @@ cb_data = context.manage_copyObjects(\n ids=[r.getId() for r in context.contentValues(portal_type=\'Role Information\')])\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 if ti == context or ti.getId() in portal_type_list:\n continue\n @@ -87,7 +84,7 @@ return context.Base_redirect(form_id,\n </item> <item> <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> <key> <string>errors</string> </key> @@ -127,6 +124,7 @@ return context.Base_redirect(form_id,\n <string>_getiter_</string> <string>r</string> <string>cb_data</string> + <string>None</string> <string>ti</string> <string>group</string> <string>_getitem_</string> @@ -144,6 +142,7 @@ return context.Base_redirect(form_id,\n <key> <string>func_defaults</string> </key> <value> <tuple> + <none/> <string>view</string> </tuple> </value> diff --git a/bt5/erp5_forge/bt/change_log b/bt5/erp5_forge/bt/change_log index 37b055dfcb3abbdb81a575da36c77bbf0be9d8bc..11c79db1e089ab2e0c0415ed1b78fff410cce2cc 100644 --- a/bt5/erp5_forge/bt/change_log +++ b/bt5/erp5_forge/bt/change_log @@ -1,3 +1,6 @@ +2010-10-11 lucas +* Now portal_type_group_list is an optional param for the script BaseType_copyRoleList. + 2010-03-02 yusei * Remove short title. diff --git a/bt5/erp5_forge/bt/revision b/bt5/erp5_forge/bt/revision index e1f27603b67cf0f499c57323674beccfac4e31e7..3be613f062adb15df6bc72b05b935dd8eb81581e 100644 --- a/bt5/erp5_forge/bt/revision +++ b/bt5/erp5_forge/bt/revision @@ -1 +1 @@ -613 \ No newline at end of file +614 \ No newline at end of file