Commit a038da9f authored by Sebastien Robin's avatar Sebastien Robin

2008-10-07: Seb

* Make the change of listbox page working at ERP5SiteDocumentationHelper level
* All script for column url of listbox will need to be updated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24444 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61faec83
<?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>from Products.ERP5Form.Report import ReportSection\n
result = []\n
request = context.REQUEST\n
uri = request.get(\'uri\', None)\n
if uri is None:\n
uri = request.get(\'field_your_uri\')\n
class_name = request.get(\'class_name\', None)\n
if class_name is None:\n
class_name = request.get(\'field_your_class_name\')\n
context.log(\'uri\', uri)\n
context.log(\'class_name\', class_name)\n
\n
\n
result.append(\n
ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
method_id=\'getDocumentationHelper\',\n
form_id=\'%s_view\' % class_name,\n
param_list=[class_name,\n
uri],\n
#listbox_display_mode=\'FlatListMode\'\n
)\n
)\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></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>Products.ERP5Form.Report</string>
<string>ReportSection</string>
<string>result</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>None</string>
<string>uri</string>
<string>class_name</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>DocumentationHelper_getDocumentationHelperSectionList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -61,7 +61,9 @@ url = tab_url[2].split(\'/\')\n
new_url = \'/\'.join(url[:-1])\n
portal_url = \'%s:%s\' % (host,new_url)\n
uri = context.getPortalObject().getUrl()\n
return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/getDocumentationHelper?uri=%s&class_name=ERP5SiteDocumentationHelper\' % (portal_url, uri))\n
class_name = \'ERP5SiteDocumentationHelper\'\n
return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/DocumentationHelper_viewDocumentationHelper?class_name=%s&uri=%s\' % (portal_url,\n
class_name,uri))\n
]]></string> </value>
......@@ -109,6 +111,7 @@ return context.REQUEST.RESPONSE.redirect(\'%s/portal_classes/getDocumentationHe
<string>new_url</string>
<string>portal_url</string>
<string>uri</string>
<string>class_name</string>
</tuple>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Report" module="Products.ERP5Form.Report"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>This is wonderfull ERP5 instance</string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>your_class_name</string>
<string>your_uri</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>DocumentationHelper_viewDocumentationHelper</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>DocumentationHelper_viewERP5SiteDocumentation</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>report_view</string> </value>
</item>
<item>
<key> <string>report_method</string> </key>
<value> <string>DocumentationHelper_getDocumentationHelperSectionList</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>View of Documentation</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -58,7 +58,7 @@
portal_url = context.getPortalObject().portal_classes.absolute_url()\n
o = context.getPortalObject().restrictedTraverse(brain.base_uri)\n
uri = \'%s/portal_templates/%s\' % (brain.base_uri, brain.id)\n
return "%s/getDocumentationHelper?uri=%s&class_name=BusinessTemplateDocumentationHelper" % \\\n
return "%s/DocumentationHelper_viewDocumentationHelper?uri=%s&class_name=BusinessTemplateDocumentationHelper" % \\\n
(portal_url, uri)\n
......
......@@ -90,7 +90,6 @@
<list>
<string>my_id</string>
<string>my_type</string>
<string>my_title</string>
</list>
</value>
</item>
......
155
\ No newline at end of file
157
\ 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