Commit d24185d3 authored by Aurel's avatar Aurel

2006-06-05 aurel

* complete rewrite of the script that save the fast input for delivery and fix naming convention

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90fed2c7
......@@ -288,7 +288,7 @@ if listbox is None:\n
, emission_letter_list = emission_letter_list\n
, variation_list = variation_list\n
, other_parameter = other_parameter_list\n
).CashDetail_fastInputForm(**kw)\n
).CashDetail_viewLineFastInputForm(**kw)\n
\n
\n
else :\n
......@@ -306,7 +306,7 @@ else :\n
# we don\'t update anything in read only mode\n
if read_only == "True":\n
context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n
return context.asContext(context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_fastInputForm(**kw)\n
return context.asContext(context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_viewLineFastInputForm(**kw)\n
\n
# get the maximum number of line allowed for a variation\n
if column_base_category == \'cash_status\':\n
......@@ -371,7 +371,7 @@ else :\n
, portal_type=context.getPortalType()\n
, calculated_price=total_price\n
,**kw\n
).CashDetail_fastInputForm(**kw)\n
).CashDetail_viewLineFastInputForm(**kw)\n
]]></string> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>listbox_resource_translated_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <string>too_long</string> </key>
<value> <string>Too much input was given.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Resource</string> </value>
</item>
<item>
<key> <string>truncate</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -133,7 +133,6 @@ for x in column_base_list:\n
return_list.append([\'column\'+str(counter),x[0]])\n
counter += 1\n
return_list.append([\'price\',\'Price\'])\n
return_list.append([\'resource_translated_title\',\'\'])\n
return_list.append([\'resource_id\',\'\'])\n
return return_list\n
......
......@@ -71,192 +71,157 @@
<value> <string encoding="cdata"><![CDATA[
cell_base_id = \'movement\'\n
line_kwd = {\'base_id\':cell_base_id}\n
\n
variation_list = kw[\'variation_list\']\n
emissionLetter_list = kw[\'emission_letter_list\']\n
cashStatus_list = kw[\'cash_status_list\']\n
operationCurrency = kw[\'operation_currency\']\n
line_portal_type = kw[\'line_portal_type\']\n
emission_letter_list = kw[\'emission_letter_list\']\n
cash_status_list = kw[\'cash_status_list\']\n
other_parameter_list = kw[\'other_parameter\']\n
operation_currency = other_parameter_list[0]\n
line_portal_type = other_parameter_list[1]\n
read_only = other_parameter_list[2]\n
column_base_category = other_parameter_list[3]\n
use_inventory = other_parameter_list[4]\n
\n
otherParameter_list = kw[\'other_parameter\']\n
operationCurrency = otherParameter_list[0]\n
line_portal_type = otherParameter_list[1]\n
updatePossible = otherParameter_list[2]\n
columnBase = otherParameter_list[3]\n
useInventory = otherParameter_list[4]\n
\n
if columnBase == \'emission_letter\':\n
numberOfColumn = len(emissionLetter_list)\n
elif columnBase == \'cash_status\':\n
numberOfColumn = len(cashStatus_list)\n
else:\n
numberOfColumn = len(variation_list)\n
\n
#if (updatePossible==\'False\') or (not context.CashDetail_isListboxValide(listbox=listbox,columnBase=columnBase,numberOfColumn=numberOfColumn, variation_list=variation_list, operationCurrency=operationCurrency)):\n
# context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n
# return context.asContext(context=None,portal_type=context.getPortalType(), **kw).CashDetail_fastInputForm(**kw)\n
\n
# list of all variation in the portal category\n
catalog_variation_list = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()[1:]\n
if x[1] in variation_list]\n
\n
base_list=(\'emission_letter\', \'cash_status\', \'variation\')\n
default_variation_category_list = [\'emission_letter/\'+x for x in emissionLetter_list]\n
default_variation_category_list = default_variation_category_list + [\'cash_status/\'+x for x in cashStatus_list]\n
\n
counter_line=0\n
\n
#containerLines_toDelete = []\n
lines_toDelete = []\n
# List of elements on the input listbox\n
\n
previous_resourceId = None\n
line_created = False\n
\n
listbox_line_count = len(listbox)\n
if listbox_line_count > 0:\n
listbox_line_count_plus_1 = listbox_line_count+1\n
# get the column base list\n
if column_base_category == \'cash_status\':\n
columne_base_list = cash_status_list\n
elif column_base_category == \'emission_letter\':\n
column_base_list = emission_letter_list\n
else:\n
listbox_line_count_plus_1 = listbox_line_count\n
column_base_list = variation_list\n
\n
last_row = False\n
base_category_list = (\'emission_letter\', \'cash_status\', \'variation\')\n
per_resource_dict = {}\n
\n
#for listbox_line in listbox : # Element of ListBox\n
test = []\n
create_line = False\n
for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
# remove previous line\n
old_line = [x.getObject() for x in context.searchFolder(portal_type=[\'Cash Delivery Line\',])]\n
if len(old_line)>0:\n
for object_list in old_line:\n
context.deleteContent(object_list.getId())\n
\n
if i_listbox >= listbox_line_count:\n
last_row = True\n
# get the list of movement we need to create\n
for line in listbox:\n
for counter in xrange(1, len(column_base_list)+1):\n
quantity = line["column%s" %(str(counter),)]\n
if quantity != 0:\n
movement = {}\n
movement[\'quantity\'] = quantity\n
# get variation for the cell\n
if column_base_category == \'cash_status\':\n
movement[\'cash_status\'] = "cash_status/%s" %cash_status_list[counter-1]\n
movement[\'emission_letter\'] = "emission_letter/%s" %line[\'emission_letter\']\n
movement[\'variation\'] = "variation/%s" %line[\'variation\']\n
elif column_base_category == \'emission_letter\':\n
movement[\'cash_status\'] = "cash_status/%s" %line[\'cash_status\']\n
movement[\'emission_letter\'] = "emission_letter/%s" %emission_letter_list[counter-1]\n
movement[\'variation\'] = "variation/%s" %line[\'variation\']\n
else:\n
listbox_line = listbox[i_listbox]\n
\n
if last_row or (previous_resourceId is None) or not (previous_resourceId == listbox_line[\'resource_id\']):\n
\n
if create_line :\n
counter_line += 1\n
# context.log(\'create new line\', line_category_list)\n
new_line = context.newContent(portal_type=line_portal_type) # New line creation\n
new_line.setResourceValue(resource_object) # Set line resource by object found\n
new_line.setVariationBaseCategoryList(base_list)\n
new_line.setVariationCategoryList(line_category_list)\n
\n
new_line.updateCellRange(script_id=\'CashDetail_asCellRange\', base_id = cell_base_id)\n
\n
kwd = {\'base_id\': cell_base_id}\n
cell_range_key_list = new_line.getCellRangeKeyList(base_id = cell_base_id)\n
\n
for cell_category in cell_category_list :\n
variante_list = [cell_category[\'emission_letter\'], cell_category[\'variation\'], cell_category[\'cash_status\']]\n
\n
cell = new_line.newCell(*variante_list, **kwd)\n
mapped_value_list = [\'price\',]\n
if useInventory == 1:\n
mapped_value_list.append(\'inventory\')\n
movement[\'cash_status\'] = "cash_status/%s" %line[\'cash_status\']\n
movement[\'emission_letter\'] = "emission_letter/%s" %line[\'emission_letter\']\n
movement[\'variation\'] = "variation/%s" %variation_list[counter-1]\n
# generate a key based on variation\n
# this will allow us to check if there is multiple line for the same resource + variation\n
movement_key = \'%s_%s_%s\' %(movement[\'cash_status\'], movement[\'emission_letter\'], movement[\'variation\'])\n
resource_id = line["resource_id"]\n
if per_resource_dict.has_key(resource_id) and per_resource_dict[resource_id].has_key(movement_key):\n
# add quantity in case af same movement\n
per_resource_dict[resource_id][movement_key][\'quantity\'] = per_resource_dict[resource_id][movement_key][\'quantity\'] + movement[\'quantity\']\n
elif per_resource_dict.has_key(resource_id):\n
# add variation for this resource\n
per_resource_dict[resource_id][movement_key] = movement\n
else:\n
mapped_value_list.append(\'quantity\')\n
cell.edit(mapped_value_property_list = mapped_value_list\n
,force_update = 1\n
,membership_criterion_category_list = variante_list\n
,category_list = variante_list\n
)\n
# create a dict of variation for this resource\n
per_resource_dict[resource_id] = {movement_key:movement,}\n
\n
# create the movement\n
for resource_id in per_resource_dict.keys():\n
variation_list_dict = per_resource_dict[resource_id].values()\n
# get the resource\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'), id = resource_id)\n
if len(resource_list) == 0:\n
context.log(\'CashDetail_saveFastInputLine\', \'Cannot get the resource object for id = %s\' %(resource_id,))\n
continue\n
resource_object = resource_list[0].getObject()\n
# get the variation\n
emission_letter_dict = {}\n
cash_status_dict = {}\n
variation_dict = {}\n
for variation in variation_list_dict:\n
letter = variation[\'emission_letter\']\n
status = variation[\'cash_status\']\n
variation = variation[\'variation\']\n
# check if variation exist for the resource\n
if column_base_category == "variation":\n
if variation != \'variation/not_defined\' and variation.lstrip(\'variation/\') not in resource_object.getVariationList():\n
raise "InputError", "%s doesn\\\'t exist for %s" %(resource_object.getTitle(), variation)\n
if not emission_letter_dict.has_key(letter):\n
emission_letter_dict[letter] = 1\n
if not cash_status_dict.has_key(status):\n
cash_status_dict[status] = 1\n
if not variation_dict.has_key(variation):\n
variation_dict[variation] = 1\n
\n
if useInventory == 1:\n
oldQuantity = cell.getProperty(\'inventory\') or 0\n
cell.edit( inventory = cell_category[\'quantity\'] + oldQuantity\n
, price = new_line.getResourceValue().getBasePrice()\n
, reindex_object = 1\n
variation_category_list = emission_letter_dict.keys() + cash_status_dict.keys() + variation_dict.keys()\n
# create the cash line\n
line = context.newContent(portal_type = line_portal_type\n
, resource_value = resource_object # banknote or coin\n
, quantity_unit_value = context.portal_categories.quantity_unit.unit\n
)\n
# set base category list on line\n
line.setVariationBaseCategoryList(base_category_list)\n
# set category list line\n
line.setVariationCategoryList(variation_category_list)\n
line.updateCellRange(script_id=\'CashDetail_asCellRange\', base_id=cell_base_id)\n
# create cell\n
cell_range_key_list = line.getCellRangeKeyList(base_id=cell_base_id)\n
if cell_range_key_list <> [[None, None]] :\n
for k in cell_range_key_list:\n
# check we don\'t create a cell for variation which is not defined\n
key = "%s_%s_%s" %(k[2], k[0], k[1])\n
if not per_resource_dict[resource_id].has_key(key):\n
continue\n
category_list = filter(lambda k_item: k_item is not None, k)\n
c = line.newCell(*k, **line_kwd)\n
if use_inventory == \'True\':\n
mapped_value_list = [\'price\', \'inventory\']\n
else:\n
oldQuantity = cell.getProperty(\'quantity\') or 0\n
cell.edit( quantity = cell_category[\'quantity\'] + oldQuantity\n
, price = new_line.getResourceValue().getBasePrice()\n
, reindex_object = 1\n
mapped_value_list = [\'price\', \'quantity\']\n
c.edit(membership_criterion_category_list = category_list\n
, mapped_value_property_list = mapped_value_list\n
, category_list = category_list\n
, price = line.getResourceValue().getBasePrice()\n
, force_update = 1\n
)\n
\n
if last_row:\n
break\n
create_line = False\n
line_category_list = []\n
cell_category_list = []\n
\n
old_line = context.CashDetail_search_lineByResource(listbox_line[\'resource_id\'],line_portal_type) # Search if current object contain line with the gived portal type\n
if old_line is not None: # Line found, delete it\n
context.manage_delObjects(old_line.getId())\n
\n
\n
previous_resourceId = listbox_line[\'resource_id\']\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resource_id\'])\n
resource_object = resource_list[0].getObject()\n
\n
if columnBase == \'cash_status\':\n
if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' + listbox_line[\'emission_letter\']\n
else :\n
cell_emissionLetter = \'emission_letter/\' + emissionLetter_list[0]\n
if len(variation_list ) > 1 :\n
cell_variation = \'variation/\'+listbox_line[\'variation\']\n
else :\n
cell_variation = \'variation/\'+variation_list[0]\n
axis_list_dict = {\'column\':cashStatus_list,\'line1\': emissionLetter_list ,\'line2\': variation_list}\n
axis_dict = {\'column\':\'cash_status\',\'line1\': \'emission_letter\' ,\'line2\': \'variation\'}\n
base_line_category_list = (cell_variation,cell_emissionLetter)\n
elif columnBase == \'emission_letter\':\n
if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n
else :\n
cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n
if len(variation_list ) > 1 :\n
cell_variation = \'variation/\'+listbox_line[\'variation\']\n
else :\n
cell_variation = \'variation/\'+variation_list[0]\n
axis_list_dict = {\'column\':emissionLetter_list ,\'line1\':cashStatus_list ,\'line2\': variation_list}\n
axis_dict = {\'column\':\'emission_letter\',\'line1\':\'cash_status\' ,\'line2\': \'variation\'}\n
base_line_category_list = (cell_variation,cell_cashStatus)\n
# set quantity on cell to define quantity of bank notes / coins\n
for variation_item in variation_list_dict:\n
variation = variation_item[column_base_category]\n
if column_base_category == "cash_status":\n
cell = line.getCell(variation_item["emission_letter"],\n
variation_item["variation"],\n
variation,\n
base_id=cell_base_id)\n
elif column_base_category == "emission_letter":\n
cell = line.getCell(variation,\n
variation_item["variation"],\n
variation_item["cash_status"],\n
base_id=cell_base_id)\n
else:\n
if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' +listbox_line[\'emission_letter\']\n
else :\n
cell_emissionLetter = \'emission_letter/\' +emissionLetter_list[0]\n
if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n
else :\n
cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n
axis_list_dict = {\'column\':variation_list,\'line1\': emissionLetter_list ,\'line2\': cashStatus_list}\n
axis_dict = {\'column\':\'variation\',\'line1\': \'emission_letter\' ,\'line2\':\'cash_status\' }\n
base_line_category_list = (cell_cashStatus,cell_emissionLetter)\n
categoy_list_created = False\n
counter = 0\n
for col in axis_list_dict[\'column\']:\n
counter += 1\n
cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n
if cell_quantity <> 0 : # input quantity in the listbox\n
if columnBase == \'cash_status\':\n
cell_cashStatus = \'cash_status/\'+col\n
elif columnBase == \'emission_letter\':\n
cell_emissionLetter = \'emission_letter/\' +col\n
cell = line.getCell(variation_item["emission_letter"],\n
variation,\n
variation_item["cash_status"],\n
base_id=cell_base_id)\n
# set quantity\n
if cell is not None:\n
if use_inventory == \'True\':\n
cell.setInventory(variation_item["quantity"])\n
else:\n
cell_variation = \'variation/\'+col\n
# check that the variation selected exist for the resource object\n
if col != \'not_defined\' and col not in resource_object.getVariationList():\n
raise "Input Error", "%s doesn\'t exist for %s" %(resource_object.getTitle(), col)\n
\n
cell_category_list += [{\'emission_letter\':cell_emissionLetter ,\'variation\':cell_variation, \'cash_status\':cell_cashStatus, \'quantity\':cell_quantity}]\n
\n
create_line = True\n
if not categoy_list_created:\n
for base_line_category in base_line_category_list:\n
if base_line_category not in line_category_list:\n
line_category_list.append(base_line_category)\n
categoy_list_created = True\n
column_category = axis_dict[\'column\']+\'/\'+col\n
if column_category not in line_category_list:\n
line_category_list.append(column_category)\n
cell.setQuantity(variation_item["quantity"])\n
\n
\n
request = context.REQUEST\n
redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n
, \'portal_status_message=\'+context.Localizer.translate("ui", "${nb}+lines+created...", mapping = { \'nb\' : str(counter_line)})\n
, \'portal_status_message=Lines Created\'\n
)\n
request[ \'RESPONSE\' ].redirect( redirect_url )\n
......@@ -277,7 +242,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_fastInputSave</string> </value>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_saveFastInputLine</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
......@@ -324,70 +289,60 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>listbox</string>
<string>kw</string>
<string>cell_base_id</string>
<string>line_kwd</string>
<string>_getitem_</string>
<string>variation_list</string>
<string>emissionLetter_list</string>
<string>cashStatus_list</string>
<string>operationCurrency</string>
<string>emission_letter_list</string>
<string>cash_status_list</string>
<string>other_parameter_list</string>
<string>operation_currency</string>
<string>line_portal_type</string>
<string>otherParameter_list</string>
<string>updatePossible</string>
<string>columnBase</string>
<string>useInventory</string>
<string>len</string>
<string>numberOfColumn</string>
<string>read_only</string>
<string>column_base_category</string>
<string>use_inventory</string>
<string>columne_base_list</string>
<string>column_base_list</string>
<string>base_category_list</string>
<string>per_resource_dict</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>x</string>
<string>catalog_variation_list</string>
<string>base_list</string>
<string>default_variation_category_list</string>
<string>counter_line</string>
<string>lines_toDelete</string>
<string>None</string>
<string>previous_resourceId</string>
<string>False</string>
<string>line_created</string>
<string>listbox_line_count</string>
<string>listbox_line_count_plus_1</string>
<string>last_row</string>
<string>test</string>
<string>create_line</string>
<string>range</string>
<string>i_listbox</string>
<string>True</string>
<string>listbox_line</string>
<string>new_line</string>
<string>old_line</string>
<string>len</string>
<string>object_list</string>
<string>line</string>
<string>xrange</string>
<string>counter</string>
<string>str</string>
<string>quantity</string>
<string>movement</string>
<string>_write_</string>
<string>movement_key</string>
<string>resource_id</string>
<string>variation_list_dict</string>
<string>resource_list</string>
<string>resource_object</string>
<string>line_category_list</string>
<string>kwd</string>
<string>emission_letter_dict</string>
<string>cash_status_dict</string>
<string>variation_dict</string>
<string>variation</string>
<string>letter</string>
<string>status</string>
<string>variation_category_list</string>
<string>cell_range_key_list</string>
<string>cell_category_list</string>
<string>cell_category</string>
<string>variante_list</string>
<string>None</string>
<string>k</string>
<string>key</string>
<string>filter</string>
<string>category_list</string>
<string>_apply_</string>
<string>cell</string>
<string>c</string>
<string>mapped_value_list</string>
<string>oldQuantity</string>
<string>old_line</string>
<string>resource_list</string>
<string>cell_emissionLetter</string>
<string>cell_variation</string>
<string>axis_list_dict</string>
<string>axis_dict</string>
<string>base_line_category_list</string>
<string>cell_cashStatus</string>
<string>categoy_list_created</string>
<string>counter</string>
<string>col</string>
<string>int</string>
<string>str</string>
<string>cell_quantity</string>
<string>base_line_category</string>
<string>column_category</string>
<string>variation_item</string>
<string>cell</string>
<string>request</string>
<string>redirect_url</string>
</tuple>
......@@ -408,7 +363,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CashDetail_fastInputSave</string> </value>
<value> <string>CashDetail_saveFastInputLine</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>CashDetail_saveFastInputLine</string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string>multipart/form-data</string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>listbox</string>
</list>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_price</string>
<string>listbox_displayed_resource</string>
<string>listbox_variation</string>
<string>listbox_column1</string>
<string>listbox_column10</string>
<string>listbox_column2</string>
<string>listbox_column3</string>
<string>listbox_column4</string>
<string>listbox_column5</string>
<string>listbox_column6</string>
<string>listbox_column7</string>
<string>listbox_column8</string>
<string>listbox_column9</string>
<string>listbox_column11</string>
<string>listbox_column12</string>
<string>listbox_column13</string>
<string>listbox_column14</string>
<string>listbox_column15</string>
<string>listbox_cash_status</string>
<string>listbox_emission_letter</string>
<string>listbox_number_line_to_add</string>
<string>listbox_resource_id</string>
</list>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_variation_list</string>
<string>my_operation_currency</string>
<string>my_cash_status_list</string>
<string>my_emission_letter_list</string>
<string>my_line_portal_type</string>
<string>my_other_parameter</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list>
<string>my_calculated_price</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CashDetail_viewLineFastInputForm</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>CashDelivery_generateCashDetailInputDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Save</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string>CashDelivery_generateCashDetailInputDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -221,7 +221,7 @@
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
......
......@@ -221,7 +221,7 @@
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
......
2006-06-05 aurel
* complete rewrite of the script that save the fast input for delivery
2006-06-02 aurel
* finish the rewrite of fast input script
......
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