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 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -67,13 +55,12 @@ ...@@ -67,13 +55,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from ZTUtils import make_query\n <value> <string>from ZTUtils import make_query\n
portal_url = context.getPortalObject().portal_url()\n portal_url = context.getPortalObject().portal_url()\n
uri = context.getPortalObject().getUrl()\n query = make_query(uri=context.getPortalObject().getUrl(),\n
if portal_skin == \'ODT\':\n class_name="ERP5SiteDocumentationHelper",\n
query = make_query(uri=uri, class_name="ERP5SiteDocumentationHelper", portal_skin="ODT", business_template_list=business_template_list)\n portal_skin=portal_skin,\n
return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query) )\n business_template_list=business_template_list)\n
else:\n return context.REQUEST.RESPONSE.redirect(\n
query = make_query(uri=uri, class_name="ERP5SiteDocumentationHelper", portal_skin="View", business_template_list=business_template_list)\n \'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query))\n
return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/DocumentationHelper_viewReport?%s\' % (portal_url, query) )\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -82,15 +69,9 @@ else:\n ...@@ -82,15 +69,9 @@ else:\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -123,7 +104,6 @@ else:\n ...@@ -123,7 +104,6 @@ else:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal_url</string> <string>portal_url</string>
<string>uri</string>
<string>query</string> <string>query</string>
</tuple> </tuple>
</value> </value>
...@@ -137,8 +117,8 @@ else:\n ...@@ -137,8 +117,8 @@ else:\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<string></string> <string>View</string>
<list/> <tuple/>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
erp5_odt_style
\ No newline at end of file
67 69
\ No newline at end of file \ 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