Commit 04ce96fa authored by Łukasz Nowak's avatar Łukasz Nowak

- it is enough to expose variable into script arguments, no need to use...

 - it is enough to expose variable into script arguments, no need to use request to fetch it (thanks Jerome)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30116 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9232b36
...@@ -54,10 +54,6 @@ ...@@ -54,10 +54,6 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import translateString\n <value> <string>from Products.ERP5Type.Message import translateString\n
\n
title = context.REQUEST.get(\'title\')\n
text_content = context.REQUEST.get(\'text_content\')\n
\n
bug_line = context.newContent(portal_type=\'Bug Line\',\n bug_line = context.newContent(portal_type=\'Bug Line\',\n
title = title, text_content=text_content)\n title = title, text_content=text_content)\n
bug_line.start()\n bug_line.start()\n
...@@ -77,7 +73,7 @@ else:\n ...@@ -77,7 +73,7 @@ else:\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>batch_mode=0, form_id=\'view\', *args, **kwargs</string> </value> <value> <string>title=\'\', text_content=\'\', form_id=\'view\', batch_mode=0, *args, **kwargs</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -97,22 +93,22 @@ else:\n ...@@ -97,22 +93,22 @@ else:\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>4</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>batch_mode</string> <string>title</string>
<string>text_content</string>
<string>form_id</string> <string>form_id</string>
<string>batch_mode</string>
<string>args</string> <string>args</string>
<string>kwargs</string> <string>kwargs</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>translateString</string> <string>translateString</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>title</string>
<string>text_content</string>
<string>bug_line</string> <string>bug_line</string>
<string>dict</string> <string>dict</string>
</tuple> </tuple>
...@@ -127,8 +123,10 @@ else:\n ...@@ -127,8 +123,10 @@ else:\n
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <tuple>
<int>0</int> <string></string>
<string></string>
<string>view</string> <string>view</string>
<int>0</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
521 522
\ 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