Commit 0b957f4a authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-26 mame

* change use of mapping in script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27198 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab41bb39
......@@ -70,9 +70,11 @@ context.setVariationCategoryList([])\n
base_id = \'movement\'\n
for line in kw.get(\'listbox\'):\n
if line.has_key(\'listbox_key\') and line[\'quantity\'] in (\'\',None):\n
msg = translateString(\'Please Define Quantity for Item Defined On Line %s\'%line[\'listbox_key\'], mapping = kw)\n
msg = translateString("Please Define Quantity for Item Defined On Line ${line_id}",\n
mapping={\'line_id\': line[\'listbox_key\']})\n
return context.Base_redirect(form_id, keep_items=dict(\n
portal_status_message=msg))\n
\n
if line.has_key(\'listbox_key\') and (line[\'title\'] or line[\'reference\'] not in (\'\', None)):\n
module = context.getDefaultModule(type)\n
item = module.newContent(portal_type=type,\n
......
129
\ No newline at end of file
131
\ 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