Commit 97fd4a29 authored by Nicolas Dumazet's avatar Nicolas Dumazet

2010-09-27 nicolas.dumazet

* do not use manage_addTypeInformation anymore

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38677 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afcfa4f1
......@@ -59,11 +59,10 @@ portal_types = portal.portal_types\n
object_portal_type_id = object_portal_type\n
\n
# Create a new portal_type for the module\n
portal_types.manage_addTypeInformation(\'ERP5 Type Information\',\n
id=module_portal_type, typeinfo_name=\'ERP5Type: Folder (ERP5 Folder)\')\n
module_portal_type_value = portal_types[module_portal_type]\n
module_portal_type_value = portal_types.newContent(id=module_portal_type, portal_type=\'Base Type\')\n
# Set icon and allowed content types\n
module_portal_type_value.edit(\n
type_factory_method_id=\'addFolder\',\n
type_icon=\'folder_icon.gif\',\n
type_filter_content_type=1,\n
type_allowed_content_type_list=(object_portal_type_id,),\n
......@@ -174,11 +173,7 @@ form.manage_addField(\n
\n
\n
# Then add the portal_type corresponding to the new object\n
portal_types.manage_addTypeInformation(\'ERP5 Type Information\'\n
, typeinfo_name = \'ERP5Type: XML Object (ERP5 XML Object)\'\n
, id = object_portal_type_id\n
)\n
object_portal_type_value = portal_types[object_portal_type_id]\n
object_portal_type_value = portal_types.newContent(id=object_portal_type_id, portal_type=\'Base Type\', factory_method_id=\'addXMLObject\')\n
\n
# Chain to edit_workflow\n
portal.portal_workflow.setChainForPortalTypes([object_portal_type_id],\n
......@@ -271,12 +266,12 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>portal</string>
<string>portal_types</string>
<string>object_portal_type_id</string>
<string>_getitem_</string>
<string>module_portal_type_value</string>
<string>dict</string>
<string>module_list_form_id</string>
<string>portal_skins_folder_name</string>
<string>portal_skins</string>
<string>_getitem_</string>
<string>skin_folder</string>
<string>_getiter_</string>
<string>skin_name</string>
......
2010-09-27 nicolas.dumazet
* do not use manage_addTypeInformation anymore
2010-09-27 nicolas.dumazet
* correct regular expressions in base_type_interaction_workflow trigger methods
* add portal type classes-related fields on BaseType_view
......
1729
\ No newline at end of file
1730
\ 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