Commit 424c853d authored by Fabien Morin's avatar Fabien Morin

EGoc_goToDocument script contain some error : replace __ac_name varible name by application_number

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23812 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 405f8764
......@@ -56,13 +56,13 @@
<value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
\n
if not __ac_name and id:\n
if not application_number and id:\n
application_number = id\n
\n
keep_items = {}\n
\n
if __ac_name:\n
document = context.portal_catalog.getResultValue(id=__ac_name)\n
if application_number:\n
document = context.portal_catalog.getResultValue(id=application_number)\n
context.log(\'document : %s\' % document)\n
if document is not None:\n
\n
......@@ -73,7 +73,7 @@ if __ac_name:\n
if document.getValidationState() != \'draft\':\n
form_id=\'PDFDocument_viewAnonymousHistory\'\n
context.log(\'pouet\')\n
#keep_items = dict(__ac_name=application_number, __ac_password=pin_number)\n
#keep_items = dict(application_number=application_number, __ac_password=pin_number)\n
\n
#form_id = \'subscription_form_module/%s/%s\' % (application_number, form_id)\n
return document.Base_redirect(form_id=form_id, keep_items=keep_items)\n
......@@ -90,7 +90,7 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>__ac_name=None, id=None, **kw</string> </value>
<value> <string>application_number=None, id=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......@@ -103,9 +103,7 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<item>
<key> <string>errors</string> </key>
<value>
<tuple>
<string>Line 1: "__ac_name" is an invalid variable name because it starts with "_"</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -120,12 +118,25 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple/>
<tuple>
<string>application_number</string>
<string>id</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>N_</string>
<string>keep_items</string>
<string>document</string>
<string>None</string>
<string>form_id</string>
<string>msg</string>
</tuple>
</value>
</item>
</dictionary>
......@@ -136,7 +147,10 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple/>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
......
360
\ No newline at end of file
362
\ 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