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 @@ ...@@ -56,13 +56,13 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
\n \n
if not __ac_name and id:\n if not application_number and id:\n
application_number = id\n application_number = id\n
\n \n
keep_items = {}\n keep_items = {}\n
\n \n
if __ac_name:\n if application_number:\n
document = context.portal_catalog.getResultValue(id=__ac_name)\n document = context.portal_catalog.getResultValue(id=application_number)\n
context.log(\'document : %s\' % document)\n context.log(\'document : %s\' % document)\n
if document is not None:\n if document is not None:\n
\n \n
...@@ -73,7 +73,7 @@ if __ac_name:\n ...@@ -73,7 +73,7 @@ if __ac_name:\n
if document.getValidationState() != \'draft\':\n if document.getValidationState() != \'draft\':\n
form_id=\'PDFDocument_viewAnonymousHistory\'\n form_id=\'PDFDocument_viewAnonymousHistory\'\n
context.log(\'pouet\')\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 \n
#form_id = \'subscription_form_module/%s/%s\' % (application_number, form_id)\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 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 ...@@ -90,7 +90,7 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
...@@ -103,9 +103,7 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes ...@@ -103,9 +103,7 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Line 1: "__ac_name" is an invalid variable name because it starts with "_"</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -120,12 +118,25 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes ...@@ -120,12 +118,25 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>2</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <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> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -136,7 +147,10 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes ...@@ -136,7 +147,10 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple/> <tuple>
<none/>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
360 362
\ 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