From d41cc3eaff3aef877dd4bad2bbc8f4d4d7bdfbe8 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 22 Aug 2006 12:12:47 +0000 Subject: [PATCH] Fix stupid mistakes that prevented to create a module with xhtml style. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9317 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/ERP5Site_createModule.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_createModule.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_createModule.xml index 4ef4ae8e62..65ad0d613e 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_createModule.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5Site_createModule.xml @@ -70,7 +70,8 @@ <key> <string>_body</string> </key> <value> <string>from Products.Formulator.Errors import ValidationError, FormValidationError\n \n -request=context.REQUEST\n +N_ = context.getPortalObject().Base_translateString\n +request = context.REQUEST\n \n # TODO\n # - Allow in the module only the new document, we must activate the filter\n @@ -229,7 +230,7 @@ return context.ERP5XhtmlStyle_redirect(cancel_url, keep_items={\'portal_status_m </item> <item> <key> <string>_params</string> </key> - <value> <string>module_portal_type, portal_skins_folder, object_portal_type, object_title, module_id, module_title, **kw</string> </value> + <value> <string>cancel_url, module_portal_type, portal_skins_folder, object_portal_type, object_title, module_id, module_title, **kw</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -249,12 +250,13 @@ return context.ERP5XhtmlStyle_redirect(cancel_url, keep_items={\'portal_status_m <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>6</int> </value> + <value> <int>7</int> </value> </item> <item> <key> <string>co_varnames</string> </key> <value> <tuple> + <string>cancel_url</string> <string>module_portal_type</string> <string>portal_skins_folder</string> <string>object_portal_type</string> @@ -267,6 +269,7 @@ return context.ERP5XhtmlStyle_redirect(cancel_url, keep_items={\'portal_status_m <string>FormValidationError</string> <string>_getattr_</string> <string>context</string> + <string>N_</string> <string>request</string> <string>portal</string> <string>portal_types</string> @@ -292,8 +295,6 @@ return context.ERP5XhtmlStyle_redirect(cancel_url, keep_items={\'portal_status_m <string>object_portal_type_value</string> <string>module_object</string> <string>_apply_</string> - <string>cancel_url</string> - <string>N_</string> </tuple> </value> </item> -- 2.30.9