Commit 6b6a81a4 authored by Aurel's avatar Aurel

let the user choose the kind of container he wants the report for

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e21f2ad
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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 encoding="cdata"><![CDATA[
resource_id = context.Baobab_getPortalReferenceCurrencyID()\n
\n
currency_cash_list = [x.getObject() for x in context.currency_cash_module.objectValues() if x.getPortalType() == "Banknote" and x.getObject().getPriceCurrencyId() == resource_id and len(x.getObject().getVariationList())>0]\n
\n
return [("", None)]+[(x.getTranslatedTitle(), x.getId()) for x in currency_cash_list]\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</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>_getattr_</string>
<string>context</string>
<string>resource_id</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>x</string>
<string>len</string>
<string>currency_cash_list</string>
<string>None</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>Baobab_getDefaultBanknoteList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -67,6 +67,9 @@
<key> <string>_body</string> </key>
<value> <string>from DateTime import DateTime\n
node = context.REQUEST.form[\'vault\']\n
default_resource = context.REQUEST.form[\'resource\']\n
context.log("kw %s" %(kw,))\n
context.log("req %s" %(context.REQUEST.form,))\n
container_portal_type_list = ["Monetary Reception",]\n
\n
base_price_dict = {}\n
......@@ -92,6 +95,9 @@ if listbox is None:\n
context.log("MonetaryIssue_generateCashContainerInputDialog", "No container line find for cash container %s" %(cash_container.getRelativeUrl(),))\n
continue\n
container_line = container_lines[0]\n
if default_resource is not None and container_line.getResourceId() != default_resource:\n
context.log("skipping doc")\n
continue\n
container_dict[\'reference\'] = cash_container.getReference()\n
container_dict[\'cash_number_range_start\'] = cash_container.getCashNumberRangeStart()\n
container_dict[\'cash_number_range_stop\'] = cash_container.getCashNumberRangeStop()\n
......@@ -193,6 +199,7 @@ if listbox is None:\n
<string>_getattr_</string>
<string>context</string>
<string>node</string>
<string>default_resource</string>
<string>container_portal_type_list</string>
<string>base_price_dict</string>
<string>None</string>
......
......@@ -88,6 +88,7 @@
<value>
<list>
<string>my_vault</string>
<string>your_resource</string>
</list>
</value>
</item>
......
462
\ No newline at end of file
463
\ 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