diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Assortment.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Assortment.xml index 2624514e7226b98c5a8cdbc2da324611a00f5eb0..4ba0b27a865fef844e7c071b88c6b80485d26f46 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Assortment.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Assortment.xml @@ -68,7 +68,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>Use_init</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Cloth.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Cloth.xml index 6fd856ca0e5ae0b8c871ec457ca4e91b3b9f2ef9..bd9826aeb9c45226675884b71a8b73b50e8d0586 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Cloth.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Cloth.xml @@ -65,7 +65,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelResource_initScript</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Colour%20Range.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Colour%20Range.xml index 8a824d3e21c21187883ee65f18db77653284eac0..1bfbc755a619dc16ecff397dbc13acd35354252d 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Colour%20Range.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Colour%20Range.xml @@ -68,7 +68,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelResource_initScript</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Component.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Component.xml index c19110cfb8acd75099d3ca625cd894d8079b8b26..5d50036670c905f124fd67d9cccf610b2ae6df21 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Component.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Component.xml @@ -78,7 +78,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelResource_initScript</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Fabric%20Item.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Fabric%20Item.xml index 2b5b8c1be1b8973f3550b306633a0d18e1808d85..8e5d736703556368de5eb817f5f7faa8dfc0f5be 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Fabric%20Item.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Fabric%20Item.xml @@ -48,15 +48,15 @@ </item> <item> <key> <string>description</string> </key> - <value> <string> A Document can contain text that can be formatted using\n - *Structured Text* or *HTML*. Text can be automatically translated\n - through the use of \'message catalogs\'.\n -\n - A Document is a terminating leaf\n - in the OFS. It can not contain anything.\n -\n - Document inherits from XMLObject and can\n - be synchronized accross multiple sites.\n + <value> <string> A Document can contain text that can be formatted using\r\n + *Structured Text* or *HTML*. Text can be automatically translated\r\n + through the use of \'message catalogs\'.\r\n +\r\n + A Document is a terminating leaf\r\n + in the OFS. It can not contain anything.\r\n +\r\n + Document inherits from XMLObject and can\r\n + be synchronized accross multiple sites.\r\n </string> </value> </item> <item> @@ -85,7 +85,15 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelFabricItem_init</string> </value> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Model.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Model.xml index 9921580ea0165f6ceb230caf447b9adc93e75d52..2ff911faae3b5b725490acba103f9984c4b7c2a4 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Model.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Model.xml @@ -78,7 +78,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelResource_initScript</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Shape.xml b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Shape.xml index 28577d0da86286d7e026c6fc8aec977085ecd302..c985e25897a6fedf2b4e6b01ade50aaef38003fc 100644 --- a/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Shape.xml +++ b/bt5/erp5_apparel/PortalTypeTemplateItem/portal_types/Apparel%20Shape.xml @@ -65,7 +65,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string>ApparelResource_initScript</string> </value> + <value> <string>Resource_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabricItem_init.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabricItem_init.xml deleted file mode 100644 index f2195bd26b52befea48cbf3aa793b8bf55ba4fad..0000000000000000000000000000000000000000 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabricItem_init.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </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>context.edit(\n - title=context.getId()\n -)\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>**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>kw</string> - <string>_getattr_</string> - <string>context</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>ApparelFabricItem_init</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_initScript.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_initScript.xml index ac06321f1a5e5436f93dbb906a3683c784517dd3..7a95b4f80fc85bee98be3d3a382706f84811c007 100644 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_initScript.xml +++ b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelFabric_initScript.xml @@ -54,7 +54,6 @@ <item> <key> <string>_body</string> </key> <value> <string>context.setQuantityUnitList([\'length/meter\', \'area/squarecent\'])\n -context.Use_init()\n context.Resource_init()\n </string> </value> </item> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelResource_initScript.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelResource_initScript.xml deleted file mode 100644 index f09bd273acfde2c011f700c9a3e11a32ff31d833..0000000000000000000000000000000000000000 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/ApparelResource_initScript.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </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>context.Use_init()\n -context.Resource_init()\n -</string> </value> - </item> - <item> - <key> <string>_code</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>_getattr_</string> - <string>context</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>ApparelResource_initScript</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/Use_init.xml b/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/Use_init.xml deleted file mode 100644 index c0f8c238abcce0a10263b3e90d4ac4b750660f34..0000000000000000000000000000000000000000 --- a/bt5/erp5_apparel/SkinTemplateItem/portal_skins/erp5_apparel/Use_init.xml +++ /dev/null @@ -1,130 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </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>portal_type = context.getPortalType().lower().replace(\' \', \'_\')\n -\n -use_list = context.portal_preferences.getPreference(\'preferred_%s_use_list\' % portal_type)\n -if use_list:\n - context.edit(use_list=use_list)\n -</string> </value> - </item> - <item> - <key> <string>_code</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>_getattr_</string> - <string>context</string> - <string>portal_type</string> - <string>use_list</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>Use_init</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_apparel/bt/revision b/bt5/erp5_apparel/bt/revision index b8e817d4f8350da183e38145325940a42494db8a..ae4d10b425edf2234036e6dd7b07f9bd53fc25e3 100644 --- a/bt5/erp5_apparel/bt/revision +++ b/bt5/erp5_apparel/bt/revision @@ -1 +1 @@ -255 \ No newline at end of file +256 \ No newline at end of file