diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getERP5SiteDocumentationReport.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getERP5SiteDocumentationReport.xml index 6f3a52da5cf4dd866fb29449cd0551e38f689cd7..9e054d86217e4894a8cf5322026b81476ae49ff7 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getERP5SiteDocumentationReport.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getERP5SiteDocumentationReport.xml @@ -9,22 +9,10 @@ </pickle> <pickle> <dictionary> - <item> - <key> <string>Python_magic</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>Script_magic</string> </key> <value> <int>3</int> </value> </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_bind_names</string> </key> <value> @@ -67,13 +55,12 @@ <key> <string>_body</string> </key> <value> <string>from ZTUtils import make_query\n portal_url = context.getPortalObject().portal_url()\n -uri = context.getPortalObject().getUrl()\n -if portal_skin == \'ODT\':\n - query = make_query(uri=uri, class_name="ERP5SiteDocumentationHelper", portal_skin="ODT", business_template_list=business_template_list)\n - return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query) )\n -else:\n - query = make_query(uri=uri, class_name="ERP5SiteDocumentationHelper", portal_skin="View", business_template_list=business_template_list)\n - return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query) )\n +query = make_query(uri=context.getPortalObject().getUrl(),\n + class_name="ERP5SiteDocumentationHelper",\n + portal_skin=portal_skin,\n + business_template_list=business_template_list)\n +return context.REQUEST.RESPONSE.redirect(\n + \'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query))\n </string> </value> </item> <item> @@ -82,15 +69,9 @@ else:\n <none/> </value> </item> - <item> - <key> <string>_filepath</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> - <value> <string>portal_skin=\'\', business_template_list=[]</string> </value> + <value> <string>portal_skin=\'View\', business_template_list=()</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -123,7 +104,6 @@ else:\n <string>_getattr_</string> <string>context</string> <string>portal_url</string> - <string>uri</string> <string>query</string> </tuple> </value> @@ -137,8 +117,8 @@ else:\n <key> <string>func_defaults</string> </key> <value> <tuple> - <string></string> - <list/> + <string>View</string> + <tuple/> </tuple> </value> </item> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_viewReportDialog/your_business_template_list.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_viewReportDialog/your_business_template_list.xml index 3a3e46e478203ad0378b3046e80c9faeec18a913..cf9cb8e7572c0ae8d33226296955e6bee3812dbc 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_viewReportDialog/your_business_template_list.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_viewReportDialog/your_business_template_list.xml @@ -272,7 +272,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: [(bt.getTitle()) for bt in context.getPortalObject().portal_templates.objectValues() if bt.getInstallationState() == \'installed\']</string> </value> + <value> <string>python: (lambda x: x.sort() or x)([bt.getTitle() for bt in context.getPortalObject().portal_templates.objectValues() if bt.getInstallationState() == \'installed\'])</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_documentation/bt/dependency_list b/bt5/erp5_documentation/bt/dependency_list index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5cc79797f6ff2ea9688d7d898376db29f9b39ff2 100644 --- a/bt5/erp5_documentation/bt/dependency_list +++ b/bt5/erp5_documentation/bt/dependency_list @@ -0,0 +1 @@ +erp5_odt_style \ No newline at end of file diff --git a/bt5/erp5_documentation/bt/revision b/bt5/erp5_documentation/bt/revision index 832332893ab752cd7a530a0d45c00fdf2f436453..8c0474e3239fc7c1a693d29caba0c85b872b6c1d 100644 --- a/bt5/erp5_documentation/bt/revision +++ b/bt5/erp5_documentation/bt/revision @@ -1 +1 @@ -67 \ No newline at end of file +69 \ No newline at end of file