[Erp5-report] r38677 nicolas.dumazet - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: Sk...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 27 16:47:55 CEST 2010


Author: nicolas.dumazet
Date: Mon Sep 27 16:47:52 2010
New Revision: 38677

URL: http://svn.erp5.org?rev=38677&view=rev
Log:
2010-09-27 nicolas.dumazet
* do not use manage_addTypeInformation anymore

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml?rev=38677&r1=38676&r2=38677&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Site_createModule.xml [utf8] Mon Sep 27 16:47:52 2010
@@ -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( redire
                             <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>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log?rev=38677&r1=38676&r2=38677&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/change_log [utf8] Mon Sep 27 16:47:52 2010
@@ -1,4 +1,7 @@
 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
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=38677&r1=38676&r2=38677&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Mon Sep 27 16:47:52 2010
@@ -1 +1 @@
-1729
\ No newline at end of file
+1730
\ No newline at end of file




More information about the Erp5-report mailing list