Commit f12027b4 authored by Julien Muchembled's avatar Julien Muchembled

erp5_documentation:

* Sort list of business templates in report dialog.
* Clean up DocumentationHelper_getERP5SiteDocumentationReport
* Add dependency to erp5_odt_style


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23545 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65007973
......@@ -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>
......
......@@ -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>
......
erp5_odt_style
\ No newline at end of file
67
\ No newline at end of file
69
\ 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