Commit 999f4047 authored by Aurel's avatar Aurel

clean up the business template

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7098 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05262c38
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -78,10 +78,12 @@ def getResourceVintageList(banknote=0, coin=0):\n ...@@ -78,10 +78,12 @@ def getResourceVintageList(banknote=0, coin=0):\n
portal_type_list = ["Banknote", "Coin"]\n portal_type_list = ["Banknote", "Coin"]\n
\n \n
for resource in context.currency_cash_module.objectValues():\n for resource in context.currency_cash_module.objectValues():\n
#context.log("Baobab_getResourcevintageList", "resource.getPriceCurrency() = %s, resource.getPortalType() = %s, portal_type_list = %s" %(resource.getPriceCurrency(),resource.getPortalType(), portal_type_list))\n
if resource.getPriceCurrency() == "currency_module/%s" %(context.Baobab_getPortalReferenceCurrencyID(),) and resource.getPortalType() in portal_type_list:\n if resource.getPriceCurrency() == "currency_module/%s" %(context.Baobab_getPortalReferenceCurrencyID(),) and resource.getPortalType() in portal_type_list:\n
for variation in resource.getVariationList():\n for variation in resource.getVariationList():\n
variation_list[variation] = 1\n variation_list[variation] = 1\n
return variation_list.keys().sort()\n #context.log("variation_list", variation_list)\n
return variation_list.keys()\n
\n \n
\n \n
getResourceVintageList = CachingMethod(getResourceVintageList, id=\'Baobab_getResourceVintageList\', cache_duration=360000)\n getResourceVintageList = CachingMethod(getResourceVintageList, id=\'Baobab_getResourceVintageList\', cache_duration=360000)\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.PDFTemplate</string>
<string>PDFTemplate</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>
<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>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<?xml version="1.0" encoding="iso-8859-1"?>\n
<document filename=\'report01.pdf\'>\n
<title>Title</title>\n
<author>Author</author>\n
<subject>Subject</subject>\n
<content>\n
<table style=\'ttp0\' splitbyrow=\'1\' repeatrows=\'0\' repeatcols=\'0\'>\n
<tr rowheight=\'0.803cm\'>\n
<td colwidth=\'4.71cm\'>\n
</td>\n
<td colwidth=\'6.212cm\'>\n
</td>\n
<td colwidth=\'1.845cm\'>\n
</td>\n
<td colwidth=\'6.563cm\'>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>\n
</td>\n
<td>DECOMPOSITION</td>\n
<td>\n
</td>\n
<td>MONTANT</td>\n
</tr>\n
<tr rowheight=\'0.695cm\'>\n
<td>Nombre</td>\n
<td>Coupure</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>Billet de :</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>10.000 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>5.000 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>2.000 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>1.000 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.866cm\'>\n
<td>\n
</td>\n
<td>Valeur totale des billets</td>\n
<td>\n
</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>Piece de :</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>5.000 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>500 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>200 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>100 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>50 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>25 F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>10F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>5F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>2F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>1F</td>\n
<td>2003</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.866cm\'>\n
<td>\n
</td>\n
<td>Valeur totale des pieces</td>\n
<td>\n
</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.554cm\'>\n
<td>PAR LE DEBIT DU COMPTE</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>TOTAL DU RETRAIT</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.803cm\'>\n
<td>Numero</td>\n
<td>Z00091232</td>\n
<td>\n
</td>\n
<td>0</td>\n
</tr>\n
<tr rowheight=\'0.427cm\'>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
<tr rowheight=\'0.868cm\'>\n
<td>Intitule</td>\n
<td>KANE ABDOUL</td>\n
<td>\n
</td>\n
<td>\n
</td>\n
</tr>\n
</table>\n
</content>\n
</document>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CashContainer_viewPdf</string> </value>
</item>
<item>
<key> <string>pdf_stylesheet</string> </key>
<value> <string>CashMovement_pdfTemplate</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -68,261 +68,333 @@ ...@@ -68,261 +68,333 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
def sortCurrencyCashList(currency_cash_list):\n
"""Sort a list of currency cash objects\n
"""\n
def sortLines(a_source, b_source):\n
"""This method helps sorting supported by Python\'s standard function.\n
"""\n
# Get the currency cash objects. They can be defined as resources.\n
if a_source.getPortalType() in (\'Coin\', \'Banknote\'):\n
a = a_source\n
b = b_source\n
else :\n
a = a.getResourceValue()\n
b = b.getResourceValue()\n
\n
# First, compare the portal types.\n
result = cmp(a.getPortalType(), b.getPortalType())\n
if result != 0:\n
return result\n
\n
# Second, compare the base prices (such as 1000 and 2000 Francs CFA).\n
result = cmp(a.getBasePrice(), b.getBasePrice())\n
if result != 0:\n
return result\n
\n
# Last, compare the variations (such as the years 1994 and 2003).\n
result = cmp(a.getVariation(), b.getVariation())\n
return result\n
\n
currency_cash_list.sort(sortLines)\n
return currency_cash_list\n
\n
\n
\n
# listbox is not passed at the first time when this script is called.\n
# when the user clicks on the Update button, listbox is passed, and\n
# the contents must be preserved in the form.\n
\n
if listbox is None:\n if listbox is None:\n
default_cashStatus_list = cashDetail_parameter[\'cashStatus_list\']\n # This is the first time.\n
default_emissionLetter_list = cashDetail_parameter[\'emissionLetter_list\']\n cash_status_list = cash_detail_dict[\'cash_status_list\']\n
default_variation_list = cashDetail_parameter[\'variation_list\']\n emission_letter_list = cash_detail_dict[\'emission_letter_list\']\n
operation_currency = cashDetail_parameter[\'operation_currency\']\n variation_list = cash_detail_dict[\'variation_list\']\n
default_line_portalType = cashDetail_parameter[\'line_portalType\']\n operation_currency = cash_detail_dict[\'operation_currency\']\n
default_columnBase = cashDetail_parameter[\'columnBase\']\n line_portal_type = cash_detail_dict[\'line_portal_type\']\n
default_updatePossible = cashDetail_parameter[\'updatePossible\']\n column_base_category = cash_detail_dict[\'column_base_category\']\n
default_currencyCash_portalType = cashDetail_parameter[\'currencyCash_portalType\']\n read_only = cash_detail_dict[\'read_only\']\n
\n currency_cash_portal_type = cash_detail_dict[\'currency_cash_portal_type\']\n
if cashDetail_parameter.has_key(\'useInventory\'):\n \n
default_useInventory = cashDetail_parameter[\'useInventory\']\n \n
default_useInventory = default_useInventory or 0\n # If use_inventory is passed, use that value. Otherwise, assume False.\n
else:\n use_inventory = cash_detail_dict.get(\'use_inventory\', False)\n
default_useInventory = 0\n \n
\n if currency_cash_portal_type is None:\n
if default_currencyCash_portalType is None:\n currency_cash_portal_type = (\'Banknote\',\'Coin\')\n
default_currencyCash_portalType = (\'Banknote\',\'Coin\')\n \n
\n # If not passed, get the category IDs from the database.\n
default_otherParameter = (operation_currency, default_line_portalType, default_updatePossible,default_columnBase,default_useInventory)\n if cash_status_list is None:\n
\n cash_status_list = list(context.portal_categories.cash_status.objectIds())\n
\n if emission_letter_list is None :\n
if default_cashStatus_list is None :\n emission_letter_list = list(context.portal_categories.emission_letter.objectIds())\n
default_cashStatus_list = [x[1] for x in context.portal_categories.cash_status.getCategoryChildTitleItemList()[1:]] \n if variation_list is None :\n
if default_emissionLetter_list is None :\n variation_list = list(context.portal_categories.variation.objectIds())\n
default_emissionLetter_list = [x[1] for x in context.portal_categories.emission_letter.getCategoryChildTitleItemList()[1:]] \n \n
if default_variation_list is None :\n # Sort the lists for consistency.\n
default_variation_list = [x[1] for x in context.portal_categories.variation.getCategoryChildTitleItemList()[1:]] \n cash_status_list.sort()\n
default_emissionLetter_list.sort()\n emission_letter_list.sort()\n
\n variation_list.sort()\n
currency_list = [x.getObject() for x in context.portal_catalog(portal_type=default_currencyCash_portalType ) \\\n \n
if x.getObject().getPriceCurrency() == \'currency_module/\'+operation_currency]\n # Get the currency cash objects for a given currency.\n
\n currency = \'currency_module/%s\' % operation_currency\n
# check with variation list\n result = context.portal_catalog(portal_type = currency_cash_portal_type)\n
# do this if only one variation, if many, we display and check is done at validation of fast input\n currency_cash_list = [x.getObject() for x in result if x.getObject().getPriceCurrency() == currency]\n
context.log(\'currency list\', currency_list)\n #context.log(\'CashDelivery_generateCashDetailInputDialog\', \'currency_list = %r, operation_cur = %s\' % (currency_cash_list, operation_currency))\n
old_currency_list = currency_list[:]\n \n
if len(default_variation_list) == 1: # and len(default_emissionLetter_list) == 1 and len(default_cashStatus_list) == 1:\n # If only one variation is specified, we want to display a part of cash currencies which\n
for variation in default_variation_list:\n # exists in this variation (creation year, such as 2003).\n
for currency in old_currency_list:\n if len(variation_list) == 1:\n
if variation not in currency.getVariationList():\n new_currency_cash_list = []\n
currency_list.remove(currency)\n variation = variation_list[0]\n
\n for currency_cash in currency_cash_list:\n
currency_list = context.CashDetail_sortCurrency(currency_list)\n if variation in currency_cash.getVariationList():\n
\n new_currency_cash_list.append(currency_cash)\n
total_price = 0\n currency_cash_list = new_currency_cash_list\n
listbox = []\n \n
Line_number = 0\n currency_cash_list = sortCurrencyCashList(currency_cash_list)\n
for listbox_line in currency_list :\n \n
if default_columnBase == \'cashStatus\':\n # Get the axis information based on the specified column base category.\n
axis_list_dict = {\'column\':default_cashStatus_list,\'line1\': default_emissionLetter_list ,\'line2\': default_variation_list}\n # axis_list_dict contains the lists of objects, while axis_dict contains\n
axis_dict = {\'column\':\'cash_status\',\'line1\': \'emission_letter\' ,\'line2\': \'variation\'}\n # the base categories.\n
axis_name = {\'column\':\'cashStatus\',\'line1\': \'emissionLetter\' ,\'line2\': \'variation\'}\n if column_base_category == \'cash_status\':\n
elif default_columnBase == \'emissionLetter\':\n axis_list_dict = {\n
axis_list_dict = {\'column\':default_emissionLetter_list ,\'line1\':default_cashStatus_list ,\'line2\': default_variation_list}\n \'column\': cash_status_list,\n
axis_dict = {\'column\':\'emission_letter\',\'line1\':\'cash_status\' ,\'line2\': \'variation\'}\n \'line1\' : emission_letter_list,\n
axis_name = {\'column\':\'emissionLetter\' ,\'line1\':\'cashStatus\', \'line2\': \'variation\'}\n \'line2\' : variation_list\n
else:\n }\n
axis_list_dict = {\'column\':default_variation_list,\'line1\': default_emissionLetter_list ,\'line2\': default_cashStatus_list}\n axis_dict = {\n
axis_dict = {\'column\':\'variation\',\'line1\': \'emission_letter\' ,\'line2\':\'cash_status\' }\n \'column\': \'cash_status\',\n
axis_name = {\'column\':\'variation\',\'line1\': \'emissionLetter\' ,\'line2\':\'cashStatus\' }\n \'line1\': \'emission_letter\',\n
\n \'line2\': \'variation\'\n
resource_created = False\n }\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\') ,id= listbox_line.getId())\n elif column_base_category == \'emission_letter\':\n
resource_price = resource_list[0].getObject().getBasePrice()\n axis_list_dict = {\n
\n \'column\': emission_letter_list,\n
find_currencyLine = context.CashDetail_search_lineByResource(listbox_line.getId(),default_line_portalType ) # Search if current object contain line with the gived portal type# if not find_currencyLine is None : # If Check Payment line is found\n \'line1\' : cash_status_list,\n
for line1 in axis_list_dict[\'line1\'] : \n \'line2\' : variation_list\n
for line2 in axis_list_dict[\'line2\'] :\n }\n
debug_kha = [] \n axis_dict = {\n
counter = 0\n \'column\': \'emission_letter\',\n
Line_number += 1\n \'line1\': \'cash_status\',\n
# for y in columnBase_list: \n \'line2\': \'variation\'\n
newLine_created = False \n }\n
total_quantity = 0 \n else:\n
for col in axis_list_dict[\'column\']:\n # column_base_category == variation\n
counter += 1\n axis_list_dict = {\n
quantity = 0\n \'column\': variation_list,\n
\n \'line1\' : emission_letter_list,\n
if find_currencyLine is not None:\n \'line2\' : cash_status_list\n
if default_columnBase == \'cashStatus\':\n }\n
cell = find_currencyLine.getCell(axis_dict[\'line1\']+\'/\'+line1, axis_dict[\'line2\']+\'/\'+line2 , axis_dict[\'column\']+\'/\'+col)\n axis_dict = {\n
elif default_columnBase == \'emissionLetter\':\n \'column\': \'variation\',\n
cell = find_currencyLine.getCell(axis_dict[\'column\']+\'/\'+col, axis_dict[\'line2\']+\'/\'+line2 , axis_dict[\'line1\']+\'/\'+line1 )\n \'line1\': \'emission_letter\',\n
else:\n \'line2\': \'cash_status\'\n
cell = find_currencyLine.getCell(axis_dict[\'line1\']+\'/\'+line1 , axis_dict[\'column\']+\'/\'+col, axis_dict[\'line2\']+\'/\'+line2)\n }\n
\n \n
# cell = find_currencyLine.getCell(axis_dict[\'line1\']+\'/\'+line1 , axis_dict[\'line2\']+\'/\'+line2, axis_dict[\'column\']+\'/\'+col)\n total_price = 0\n
if cell is not None:\n listbox = []\n
# debug_kha.append((axis_dict[\'line1\']+\'/\'+line1 , axis_dict[\'line2\']+\'/\'+line2, axis_dict[\'column\']+\'/\'+col))\n \n
if (default_useInventory is None) or (default_useInventory == 0):\n for currency_cash in currency_cash_list:\n
quantity = cell.getQuantity()\n # Search if the current object contains a line with a given portal type.\n
else:\n cash_delivery_line = context.CashDelivery_searchLineByResource(currency_cash.getId(), line_portal_type)\n
quantity = cell.getInventory()\n #context.log("cash_delivery_line", str((cash_delivery_line, currency_cash.getTitle())))\n
\n # This variable counts the number of lines added for this currency cash.\n
if not ((quantity is None) or (quantity == 0) or ( newLine_created == True)):\n line_number = 0\n
newLine_created = True\n \n
resource_created = True\n if cash_delivery_line is not None:\n
currency_dict = {\'resource\':listbox_line.getTranslatedTitle(),\'resourceId\':listbox_line.getId()}\n # If a line exists for this cash currency, add lines into the listbox according to\n
currency_dict[axis_name[\'line1\']] = line1\n # the currency information.\n
currency_dict[axis_name[\'line2\']] = line2\n currency_dict = None\n
if newLine_created == True:\n resource_price = currency_cash.getBasePrice()\n
currency_dict[\'column\'+str(counter)]= quantity \n \n
total_quantity += quantity \n # Collect cells according to the categories.\n
\n cell_dict_dict = {}\n
if newLine_created:\n for cell in cash_delivery_line.getCellValueList():\n
currency_dict[\'price\']= context.Integer_toString(int(total_quantity * resource_price))\n category1 = cell.getProperty(axis_dict[\'line1\'])\n
total_price += int(total_quantity * resource_price)\n category2 = cell.getProperty(axis_dict[\'line2\'])\n
listbox.append(currency_dict)\n column_category = cell.getProperty(axis_dict[\'column\'])\n
\n key = (category1, category2)\n
# raise \'KHADIM\', repr(debug_kha)\n cell_dict_dict.setdefault(key, {})[column_category] = cell\n
if not resource_created:\n \n
currency_dict = {\'resource\':listbox_line.getTranslatedTitle(),\'resourceId\':listbox_line.getId()}\n # Sort the keys to obtain a consistent behavior.\n
currency_dict[\'emissionLetter\'] = default_emissionLetter_list[0]\n key_list = cell_dict_dict.keys()\n
currency_dict[\'cashStatus\'] = default_cashStatus_list[0]\n key_list.sort(lambda a, b: cmp(a[0], b[0]) or cmp(a[1], b[1]))\n
currency_dict[\'variation\'] = default_variation_list[0]\n \n
currency_dict[\'numberLineToAdd\']= 0 \n # Look at all the cells of the dictionary to add lines.\n
resource_price = resource_list[0].getObject().getBasePrice()\n for key in key_list:\n
currency_dict[\'price\']= context.Integer_toString(int(total_quantity * resource_price))\n cell_dict = cell_dict_dict[key]\n
total_price += int(total_quantity * resource_price)\n total_quantity = 0\n
currency_dict = None\n
for counter, column in enumerate(axis_list_dict[\'column\']):\n
cell = cell_dict.get(column, None)\n
if cell is None:\n
continue\n
\n
# Get the quantity of the cell, and skip it if not significant.\n
if use_inventory:\n
quantity = cell.getInventory()\n
else:\n
quantity = cell.getQuantity()\n
if not quantity:\n
continue\n
\n
if currency_dict is None:\n
currency_dict = {\n
\'resource_translated_title\': currency_cash.getTranslatedTitle(),\n
\'resource_id\': currency_cash.getId(),\n
axis_dict[\'line1\']: key[0],\n
axis_dict[\'line2\']: key[1],\n
}\n
\n
currency_dict[\'column%d\' % (counter + 1)] = quantity\n
total_quantity += quantity\n
\n
if currency_dict is not None:\n
price = total_quantity * resource_price\n
currency_dict[\'price\'] = price\n
total_price += price\n
line_number += 1\n
listbox.append(currency_dict)\n listbox.append(currency_dict)\n
\n \n
\n if line_number == 0:\n
total_price = context.Integer_toString(total_price)\n # Add an empty line only if no line is present for this cash currency.\n
context.Base_updateDialogForm( listbox=listbox\n currency_dict = {\n
, calculated_price=total_price\n \'resource_translated_title\': currency_cash.getTranslatedTitle(),\n
, otherParameter = default_otherParameter\n \'resource_id\': currency_cash.getId(),\n
, cashStatus_list=default_cashStatus_list\n \'emission_letter\': emission_letter_list[0],\n
, emissionLetter_list=default_emissionLetter_list\n \'cash_status\': cash_status_list[0],\n
, variation_list=default_variation_list\n \'variation\': variation_list[0],\n
, line_portalType = default_line_portalType\n \'additional_line_number\': 0,\n
, operation_currency = operation_currency\n \'price\': 0\n
, empty_line_number=0)\n }\n
\n listbox.append(currency_dict)\n
\n \n
\n other_parameter_list = (operation_currency, line_portal_type, read_only, column_base_category, use_inventory)\n
\n context.Base_updateDialogForm(listbox=listbox\n
return context.asContext( context=None\n , calculated_price=total_price\n
, portal_type=context.getPortalType()\n , empty_line_number=0\n
, calculated_price=total_price\n , cash_status_list = cash_status_list\n
, otherParameter = default_otherParameter\n , emission_letter_list = emission_letter_list\n
, cashStatus_list=default_cashStatus_list\n , variation_list = variation_list\n
, emissionLetter_list=default_emissionLetter_list\n , other_parameter = other_parameter_list\n
, variation_list=default_variation_list\n , )\n
# , line_portalType = default_line_portalType\n \n
# , operation_currency = operation_currency\n return context.asContext( context=None\n
,**kw\n , portal_type=context.getPortalType()\n
).CashDetail_fastInputForm(**kw)\n , calculated_price=total_price\n
, cash_status_list = cash_status_list\n
, emission_letter_list = emission_letter_list\n
, variation_list = variation_list\n
, other_parameter = other_parameter_list\n
).CashDetail_fastInputForm(**kw)\n
\n \n
\n \n
else :\n else :\n
otherParameter_list = kw[\'otherParameter\']\n cash_status_list = kw[\'cash_status_list\']\n
default_columnBase = otherParameter_list[3]\n emission_letter_list = kw[\'emission_letter_list\']\n
default_updatePossible = otherParameter_list[2]\n variation_list = kw[\'variation_list\']\n
default_line_portalType = otherParameter_list[1]\n other_parameter = kw[\'other_parameter\']\n
\n operation_currency = other_parameter[0]\n
\n line_portal_type = other_parameter[1]\n
if default_updatePossible == \'False\':\n read_only = other_parameter[2]\n
context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n column_base_category = other_parameter[3]\n
return context.asContext( context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_fastInputForm(**kw)\n use_inventory = other_parameter[4]\n
\n \n
if default_columnBase == \'cashStatus\':\n # we don\'t update anything in read only mode\n
columnBase_list = kw[\'cashStatus_list\']\n if read_only == "True":\n
maxLines = len(kw[\'emissionLetter_list\']) * len(kw[\'variation_list\'])\n context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n
elif default_columnBase == \'emissionLetter\':\n return context.asContext(context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_fastInputForm(**kw)\n
columnBase_list = kw[\'emissionLetter_list\']\n \n
maxLines = len(kw[\'cashStatus_list\']) * len(kw[\'variation_list\'])\n # get the variation and the maximum line allowed for a variation\n
else:\n if column_base_category == \'cash_status\':\n
columnBase_list = kw[\'variation_list\']\n columne_base_list = cash_status_list\n
maxLines = len(kw[\'emissionLetter_list\']) * len(kw[\'cashStatus_list\'])\n max_lines =len(emission_letter_list) * len(variation_list)\n
\n elif column_base_category == \'emission_letter\':\n
total_price = 0\n column_base_list = emission_letter_list\n
new_lineList = []\n max_lines =len(cash_status_list) * len(variation_list)\n
counter = 0\n else:\n
\n column_base_list = variation_list\n
preview_listbox_line = None\n max_lines =len(cash_status_list) * len(emission_letter_list)\n
numberLineToAdd = 0\n \n
numberSameLine = 0\n total_price = 0\n
\n new_line_list = []\n
listbox_line_count = len(listbox) \n counter = 0\n
if listbox_line_count > 0:\n \n
listbox_line_count_plus_1 = listbox_line_count+1\n preview_listbox_line = None\n
else:\n number_line_to_add = 0\n
listbox_line_count_plus_1 = listbox_line_count\n number_same_line = 0\n
\n \n
last_row = False\n listbox_line_count = len(listbox)\n
\n if listbox_line_count > 0:\n
last_row = False\n listbox_line_count_plus_1 = listbox_line_count+1\n
# for x in listbox :\n else:\n
for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n listbox_line_count_plus_1 = listbox_line_count\n
if i_listbox < listbox_line_count:\n \n
listbox_line = listbox[i_listbox]\n last_row = False\n
del listbox_line[\'listbox_key\']\n # for x in listbox :\n
\n for i_listbox in xrange(0,listbox_line_count_plus_1) : # Element of ListBox\n
\n if i_listbox < listbox_line_count:\n
else:\n listbox_line = listbox[i_listbox]\n
last_row = True\n del listbox_line[\'listbox_key\']\n
\n else:\n
if preview_listbox_line is None :\n last_row = True\n
preview_listbox_line = listbox_line.copy() \n \n
elif last_row or preview_listbox_line[\'resourceId\'] <> listbox_line[\'resourceId\'] :\n if preview_listbox_line is None :\n
\n preview_listbox_line = listbox_line.copy()\n
if numberLineToAdd > (maxLines - numberSameLine) :\n elif last_row or preview_listbox_line[\'resource_id\'] <> listbox_line[\'resource_id\'] :\n
numberLineToAdd = maxLines - numberSameLine\n if number_line_to_add > (max_lines - number_same_line) :\n
if numberLineToAdd > 0:\n number_line_to_add = max_lines - number_same_line\n
counter = 1\n if number_line_to_add > 0:\n
preview_listbox_line[\'numberLineToAdd\'] = 0\n counter = 1\n
for w in columnBase_list:\n preview_listbox_line[\'number_line_to_add\'] = 0\n
preview_listbox_line[\'column\'+str(counter)] = 0\n for w in column_base_list:\n
preview_listbox_line[\'price\'] = 0\n preview_listbox_line[\'column\'+str(counter)] = 0\n
counter += 1\n preview_listbox_line[\'price\'] = 0\n
for z in range(0,numberLineToAdd) :\n
new_lineList.append(preview_listbox_line) \n
# raise \'KHA\',repr((a1,b1,c1, x[\'column4\'], preview_listbox_line[\'column4\'],montest[\'column4\']))\n
if last_row:\n
break\n
\n
preview_listbox_line = listbox_line.copy() \n
numberSameLine = 0; \n
numberLineToAdd = 0\n
numberSameLine += 1\n
if maxLines > 1:\n
numberLineToAdd += listbox_line[\'numberLineToAdd\']\n
listbox_line[\'numberLineToAdd\'] = 0\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\') ,id = listbox_line[\'resourceId\'])\n
resource_price = resource_list[0].getObject().getBasePrice()\n
listbox_line[\'resource\'] = resource_list[0].getObject().getTranslatedTitle()\n
\n
quantity = 0\n
counter = 1\n
for y in columnBase_list:\n
cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n
quantity = quantity + cell_quantity\n
counter += 1\n counter += 1\n
listbox_line[\'price\'] = context.Integer_toString(int(quantity * resource_price))\n for z in xrange(0,number_line_to_add) :\n
new_line_list.append(preview_listbox_line)\n
# raise \'KHA\',repr((a1,b1,c1, x[\'column4\'], preview_listbox_line[\'column4\'],montest[\'column4\']))\n
if last_row:\n
break\n
\n
preview_listbox_line = listbox_line.copy()\n
number_same_line = 0;\n
number_line_to_add = 0\n
number_same_line += 1\n
if max_lines > 1:\n
number_line_to_add += listbox_line[\'number_line_to_add\']\n
listbox_line[\'number_line_to_add\'] = 0\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\') ,id = listbox_line[\'resource_id\'])\n
resource_price = resource_list[0].getObject().getBasePrice()\n
listbox_line[\'resource_translated_title\'] = resource_list[0].getObject().getTranslatedTitle()\n
\n
quantity = 0\n
counter = 1\n
for y in column_base_list:\n
cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n
quantity = quantity + cell_quantity\n
counter += 1\n
listbox_line[\'price\'] = context.Integer_toString(int(quantity * resource_price))\n
# raise \'KHA\',repr(( x ))\n # raise \'KHA\',repr(( x ))\n
\n \n
total_price += int(quantity * resource_price)\n total_price += int(quantity * resource_price)\n
new_lineList.append(listbox_line) \n
\n
listbox = new_lineList \n
# raise \'KHA\',repr(( listbox ))\n
total_price = context.Integer_toString(total_price)\n
\n \n
new_line_list.append(listbox_line)\n
listbox = new_line_list\n
\n \n
# raise \'KHA\',repr(( listbox ))\n
total_price = context.Integer_toString(total_price)\n
\n \n
context.Base_updateDialogForm( listbox=listbox\n context.Base_updateDialogForm( listbox=listbox\n
, calculated_price=total_price\n , calculated_price=total_price\n
, empty_line_number=0)\n , empty_line_number=0)\n
\n \n
return context.asContext( context=None\n return context.asContext( context=None\n
, portal_type=context.getPortalType()\n , portal_type=context.getPortalType()\n
, calculated_price=total_price\n , calculated_price=total_price\n
,**kw\n ,**kw\n
).CashDetail_fastInputForm(**kw)\n ).CashDetail_fastInputForm(**kw)\n
]]></string> </value> ]]></string> </value>
...@@ -341,7 +413,7 @@ else :\n ...@@ -341,7 +413,7 @@ else :\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_fastInputUpdate</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDelivery_generateCashDetailInputDialog</string> </value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
...@@ -351,7 +423,7 @@ else :\n ...@@ -351,7 +423,7 @@ else :\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>listbox=None,cashDetail_parameter=None, destination=None,**kw</string> </value> <value> <string>listbox=None,cash_detail_dict=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -371,80 +443,87 @@ else :\n ...@@ -371,80 +443,87 @@ else :\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>3</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>listbox</string> <string>listbox</string>
<string>cashDetail_parameter</string> <string>cash_detail_dict</string>
<string>destination</string>
<string>kw</string> <string>kw</string>
<string>sortCurrencyCashList</string>
<string>None</string> <string>None</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>default_cashStatus_list</string> <string>cash_status_list</string>
<string>default_emissionLetter_list</string> <string>emission_letter_list</string>
<string>default_variation_list</string> <string>variation_list</string>
<string>operation_currency</string> <string>operation_currency</string>
<string>default_line_portalType</string> <string>line_portal_type</string>
<string>default_columnBase</string> <string>column_base_category</string>
<string>default_updatePossible</string> <string>read_only</string>
<string>default_currencyCash_portalType</string> <string>currency_cash_portal_type</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>default_useInventory</string> <string>False</string>
<string>default_otherParameter</string> <string>use_inventory</string>
<string>list</string>
<string>context</string>
<string>currency</string>
<string>result</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>context</string>
<string>x</string> <string>x</string>
<string>currency_list</string> <string>currency_cash_list</string>
<string>old_currency_list</string>
<string>len</string> <string>len</string>
<string>new_currency_cash_list</string>
<string>variation</string> <string>variation</string>
<string>currency</string> <string>currency_cash</string>
<string>total_price</string>
<string>Line_number</string>
<string>listbox_line</string>
<string>axis_list_dict</string> <string>axis_list_dict</string>
<string>axis_dict</string> <string>axis_dict</string>
<string>axis_name</string> <string>total_price</string>
<string>False</string> <string>cash_delivery_line</string>
<string>resource_created</string> <string>line_number</string>
<string>resource_list</string> <string>currency_dict</string>
<string>resource_price</string> <string>resource_price</string>
<string>find_currencyLine</string> <string>cell_dict_dict</string>
<string>line1</string>
<string>line2</string>
<string>debug_kha</string>
<string>counter</string>
<string>newLine_created</string>
<string>total_quantity</string>
<string>col</string>
<string>quantity</string>
<string>cell</string> <string>cell</string>
<string>True</string> <string>category1</string>
<string>currency_dict</string> <string>category2</string>
<string>column_category</string>
<string>key</string>
<string>_write_</string> <string>_write_</string>
<string>str</string> <string>key_list</string>
<string>int</string> <string>cell_dict</string>
<string>total_quantity</string>
<string>enumerate</string>
<string>counter</string>
<string>column</string>
<string>quantity</string>
<string>price</string>
<string>other_parameter_list</string>
<string>_apply_</string> <string>_apply_</string>
<string>otherParameter_list</string> <string>other_parameter</string>
<string>columnBase_list</string> <string>columne_base_list</string>
<string>maxLines</string> <string>max_lines</string>
<string>new_lineList</string> <string>column_base_list</string>
<string>new_line_list</string>
<string>preview_listbox_line</string> <string>preview_listbox_line</string>
<string>numberLineToAdd</string> <string>number_line_to_add</string>
<string>numberSameLine</string> <string>number_same_line</string>
<string>listbox_line_count</string> <string>listbox_line_count</string>
<string>listbox_line_count_plus_1</string> <string>listbox_line_count_plus_1</string>
<string>last_row</string> <string>last_row</string>
<string>range</string> <string>xrange</string>
<string>i_listbox</string> <string>i_listbox</string>
<string>listbox_line</string>
<string>True</string>
<string>w</string> <string>w</string>
<string>str</string>
<string>z</string> <string>z</string>
<string>resource_list</string>
<string>y</string> <string>y</string>
<string>int</string>
<string>cell_quantity</string> <string>cell_quantity</string>
</tuple> </tuple>
</value> </value>
...@@ -460,13 +539,12 @@ else :\n ...@@ -460,13 +539,12 @@ else :\n
<tuple> <tuple>
<none/> <none/>
<none/> <none/>
<none/>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CashDetail_fastInputUpdate</string> </value> <value> <string>CashDelivery_generateCashDetailInputDialog</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -66,8 +66,9 @@ ...@@ -66,8 +66,9 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>resource = context.getResourceValue()\n <value> <string>for line in context.contentValues(filter={\'portal_type\':portal_type}):\n
if resource is not None: return resource.getBasePrice()\n if line.getResourceId() == resource_id:\n
return line\n
return None\n return None\n
</string> </value> </string> </value>
</item> </item>
...@@ -79,7 +80,7 @@ return None\n ...@@ -79,7 +80,7 @@ return None\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/Movement_lookupPrice</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDelivery_searchLineByResource</string> </value>
</item> </item>
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
...@@ -89,7 +90,7 @@ return None\n ...@@ -89,7 +90,7 @@ return None\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>resource_id=None, portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -109,15 +110,18 @@ return None\n ...@@ -109,15 +110,18 @@ return None\n
<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>resource_id</string>
<string>portal_type</string>
<string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>resource</string> <string>line</string>
<string>None</string> <string>None</string>
</tuple> </tuple>
</value> </value>
...@@ -130,12 +134,14 @@ return None\n ...@@ -130,12 +134,14 @@ return None\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Movement_lookupPrice</string> </value> <value> <string>CashDelivery_searchLineByResource</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>#if context.getPortalType() == \'Container Line\' :\n <value> <string>#if context.getPortalType() == \'Container Line\' :\n
# category_list = ((\'variation\',),)\n # category_list = ((\'variation\',),)\n
\n context.log(context.getPath(), base_category)\n
if base_category != None and base_category in context.getVariationBaseCategoryList():\n if base_category != None and base_category in context.getVariationBaseCategoryList():\n
variation_list = []\n variation_list = []\n
for category_item in context.getVariationCategoryItemList():\n for category_item in context.getVariationCategoryItemList():\n
...@@ -78,14 +78,14 @@ if base_category != None and base_category in context.getVariationBaseCategoryLi ...@@ -78,14 +78,14 @@ if base_category != None and base_category in context.getVariationBaseCategoryLi
title = context.Localizer.erp5_ui.gettext(title)\n title = context.Localizer.erp5_ui.gettext(title)\n
if category.startswith(base_category + \'/\'):\n if category.startswith(base_category + \'/\'):\n
variation_list.append((category, title))\n variation_list.append((category, title))\n
return variation_list \n return variation_list\n
\n \n
base_category_list = ((\'emission_letter\',),(\'variation\',),(\'cash_status\',))\n base_category_list = ((\'emission_letter\',),(\'variation\',),(\'cash_status\',))\n
variation_category_list = context.getVariationCategoryList() #(\'emission/letter/c\',\'cash_status/valid\',\'variation/2003\')\n variation_category_list = context.getVariationCategoryList() #(\'emission/letter/c\',\'cash_status/valid\',\'variation/2003\')\n
cash_line_list = []\n cash_line_list = []\n
for base_category in base_category_list :\n for base_category in base_category_list :\n
cash_line_list.append([x for x in context.OrderLine_getMatrixItemList(base_category) if x in variation_category_list])\n cash_line_list.append([x for x in context.OrderLine_getMatrixItemList(base_category) if x in variation_category_list])\n
\n context.log("cash line list", str((cash_line_list, base_category_list, variation_category_list, context.OrderLine_getMatrixItemList(base_category))))\n
return cash_line_list\n return cash_line_list\n
</string> </value> </string> </value>
</item> </item>
...@@ -95,6 +95,12 @@ return cash_line_list\n ...@@ -95,6 +95,12 @@ return cash_line_list\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_asCellRange</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_asCellRange</string> </value>
...@@ -136,9 +142,9 @@ return cash_line_list\n ...@@ -136,9 +142,9 @@ return cash_line_list\n
<string>base_category</string> <string>base_category</string>
<string>base_id</string> <string>base_id</string>
<string>matrixbox</string> <string>matrixbox</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>None</string>
<string>variation_list</string> <string>variation_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>category_item</string> <string>category_item</string>
...@@ -152,6 +158,7 @@ return cash_line_list\n ...@@ -152,6 +158,7 @@ return cash_line_list\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>x</string> <string>x</string>
<string>str</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -183,4 +190,25 @@ return cash_line_list\n ...@@ -183,4 +190,25 @@ return cash_line_list\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -99,10 +99,6 @@ ...@@ -99,10 +99,6 @@
<list> <list>
<string>listbox_price</string> <string>listbox_price</string>
<string>listbox_displayed_resource</string> <string>listbox_displayed_resource</string>
<string>listbox_resourceId</string>
<string>listbox_cashStatus</string>
<string>listbox_emissionLetter</string>
<string>listbox_resource</string>
<string>listbox_variation</string> <string>listbox_variation</string>
<string>listbox_column1</string> <string>listbox_column1</string>
<string>listbox_column10</string> <string>listbox_column10</string>
...@@ -119,7 +115,11 @@ ...@@ -119,7 +115,11 @@
<string>listbox_column13</string> <string>listbox_column13</string>
<string>listbox_column14</string> <string>listbox_column14</string>
<string>listbox_column15</string> <string>listbox_column15</string>
<string>listbox_numberLineToAdd</string> <string>listbox_cash_status</string>
<string>listbox_emission_letter</string>
<string>listbox_number_line_to_add</string>
<string>listbox_resource_translated_title</string>
<string>listbox_resource_id</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -127,12 +127,12 @@ ...@@ -127,12 +127,12 @@
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>my_emissionLetter_list</string>
<string>my_variation_list</string> <string>my_variation_list</string>
<string>my_cashStatus_list</string>
<string>my_operation_currency</string> <string>my_operation_currency</string>
<string>my_line_portalType</string> <string>my_cash_status_list</string>
<string>my_otherParameter</string> <string>my_emission_letter_list</string>
<string>my_line_portal_type</string>
<string>my_other_parameter</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
</item> </item>
<item> <item>
<key> <string>name</string> </key> <key> <string>name</string> </key>
<value> <string>CashDetail_fastInputForm</string> </value> <value> <string>CashDelivery_generateCashDetailInputDialog</string> </value>
</item> </item>
<item> <item>
<key> <string>pt</string> </key> <key> <string>pt</string> </key>
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
</item> </item>
<item> <item>
<key> <string>update_action</string> </key> <key> <string>update_action</string> </key>
<value> <string>CashDetail_fastInputUpdate</string> </value> <value> <string>CashDelivery_generateCashDetailInputDialog</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox</string> </value> <value> <string>listbox</string> </value>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_cashStatus</string> </value> <value> <string>listbox_cash_status</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -289,7 +283,7 @@ ...@@ -289,7 +283,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:cell.getProperty(\'cashStatus\')</string> </value> <value> <string>python:cell.getProperty(\'cash_status\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -308,7 +302,7 @@ ...@@ -308,7 +302,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.CashDetail_getOthersForMatrixInput(myChoice=\'cashStatus_item\')</string> </value> <value> <string>python:here.CashDetail_getOthersForMatrixInput(my_choice=\'cash_status_item\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column1</string> </value> <value> <string>listbox_column1</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column10</string> </value> <value> <string>listbox_column10</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column11</string> </value> <value> <string>listbox_column11</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column12</string> </value> <value> <string>listbox_column12</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column13</string> </value> <value> <string>listbox_column13</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column14</string> </value> <value> <string>listbox_column14</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column15</string> </value> <value> <string>listbox_column15</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column2</string> </value> <value> <string>listbox_column2</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column3</string> </value> <value> <string>listbox_column3</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column4</string> </value> <value> <string>listbox_column4</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column5</string> </value> <value> <string>listbox_column5</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column6</string> </value> <value> <string>listbox_column6</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column7</string> </value> <value> <string>listbox_column7</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column8</string> </value> <value> <string>listbox_column8</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_column9</string> </value> <value> <string>listbox_column9</string> </value>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_displayed_resource</string> </value> <value> <string>listbox_displayed_resource</string> </value>
...@@ -285,7 +279,7 @@ ...@@ -285,7 +279,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: cell.getProperty(\'resource\')</string> </value> <value> <string>python: cell.getProperty(\'resource_translated_title\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_emissionLetter</string> </value> <value> <string>listbox_emission_letter</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -289,7 +283,7 @@ ...@@ -289,7 +283,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:cell.getProperty(\'emissionLetter\')</string> </value> <value> <string>python:cell.getProperty(\'emission_letter\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -308,7 +302,7 @@ ...@@ -308,7 +302,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.CashDetail_getOthersForMatrixInput(myChoice=\'emissionLetter_item\')</string> </value> <value> <string>python:here.CashDetail_getOthersForMatrixInput(my_choice=\'emission_letter_item\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_numberLineToAdd</string> </value> <value> <string>listbox_number_line_to_add</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_price</string> </value> <value> <string>listbox_price</string> </value>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_resourceId</string> </value> <value> <string>listbox_resource_id</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -217,7 +211,7 @@ ...@@ -217,7 +211,7 @@
</item> </item>
<item> <item>
<key> <string>display_width</string> </key> <key> <string>display_width</string> </key>
<value> <int>20</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_resource</string> </value> <value> <string>listbox_resource_translated_title</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -217,7 +211,7 @@ ...@@ -217,7 +211,7 @@
</item> </item>
<item> <item>
<key> <string>display_width</string> </key> <key> <string>display_width</string> </key>
<value> <int>20</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_variation</string> </value> <value> <string>listbox_variation</string> </value>
...@@ -308,7 +302,7 @@ ...@@ -308,7 +302,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.CashDetail_getOthersForMatrixInput(myChoice=\'variation_item\')</string> </value> <value> <string>python:here.CashDetail_getOthersForMatrixInput(my_choice=\'variation_item\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_calculated_price</string> </value> <value> <string>my_calculated_price</string> </value>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_cashStatus_list</string> </value> <value> <string>my_cash_status_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_emissionLetter_list</string> </value> <value> <string>my_emission_letter_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_line_portalType</string> </value> <value> <string>my_line_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_operation_currency</string> </value> <value> <string>my_operation_currency</string> </value>
......
...@@ -12,15 +12,9 @@ ...@@ -12,15 +12,9 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_otherParameter</string> </value> <value> <string>my_other_parameter</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_variation_list</string> </value> <value> <string>my_variation_list</string> </value>
......
...@@ -71,21 +71,21 @@ ...@@ -71,21 +71,21 @@
cell_base_id = \'movement\'\n cell_base_id = \'movement\'\n
\n \n
variation_list = kw[\'variation_list\']\n variation_list = kw[\'variation_list\']\n
emissionLetter_list = kw[\'emissionLetter_list\']\n emissionLetter_list = kw[\'emission_letter_list\']\n
cashStatus_list = kw[\'cashStatus_list\']\n cashStatus_list = kw[\'cash_status_list\']\n
operationCurrency = kw[\'operation_currency\']\n operationCurrency = kw[\'operation_currency\']\n
line_portal_type = kw[\'line_portalType\']\n line_portal_type = kw[\'line_portal_type\']\n
\n \n
otherParameter_list = kw[\'otherParameter\']\n otherParameter_list = kw[\'other_parameter\']\n
operationCurrency = otherParameter_list[0]\n operationCurrency = otherParameter_list[0]\n
line_portal_type = otherParameter_list[1]\n line_portal_type = otherParameter_list[1]\n
updatePossible = otherParameter_list[2]\n updatePossible = otherParameter_list[2]\n
columnBase = otherParameter_list[3]\n columnBase = otherParameter_list[3]\n
useInventory = int(otherParameter_list[4])\n useInventory = otherParameter_list[4]\n
\n \n
if columnBase == \'emissionLetter\':\n if columnBase == \'emission_letter\':\n
numberOfColumn = len(emissionLetter_list)\n numberOfColumn = len(emissionLetter_list)\n
elif columnBase == \'cashStatus\':\n elif columnBase == \'cash_status\':\n
numberOfColumn = len(cashStatus_list)\n numberOfColumn = len(cashStatus_list)\n
else:\n else:\n
numberOfColumn = len(variation_list)\n numberOfColumn = len(variation_list)\n
...@@ -129,12 +129,12 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -129,12 +129,12 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
else:\n else:\n
listbox_line = listbox[i_listbox]\n listbox_line = listbox[i_listbox]\n
\n \n
if last_row or (previous_resourceId is None) or not (previous_resourceId == listbox_line[\'resourceId\']):\n if last_row or (previous_resourceId is None) or not (previous_resourceId == listbox_line[\'resource_id\']):\n
\n \n
if create_line :\n if create_line :\n
counter_line += 1\n counter_line += 1\n
# context.log(\'create new line\', line_category_list)\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 = 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.setResourceValue(resource_object) # Set line resource by object found\n
new_line.setVariationBaseCategoryList(base_list)\n new_line.setVariationBaseCategoryList(base_list)\n
new_line.setVariationCategoryList(line_category_list)\n new_line.setVariationCategoryList(line_category_list)\n
...@@ -158,7 +158,7 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -158,7 +158,7 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
,membership_criterion_category_list = variante_list\n ,membership_criterion_category_list = variante_list\n
,category_list = variante_list\n ,category_list = variante_list\n
)\n )\n
\n \n
if useInventory == 1:\n if useInventory == 1:\n
oldQuantity = cell.getProperty(\'inventory\') or 0\n oldQuantity = cell.getProperty(\'inventory\') or 0\n
cell.edit( inventory = cell_category[\'quantity\'] + oldQuantity\n cell.edit( inventory = cell_category[\'quantity\'] + oldQuantity\n
...@@ -178,18 +178,18 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -178,18 +178,18 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
line_category_list = []\n line_category_list = []\n
cell_category_list = []\n cell_category_list = []\n
\n \n
old_line = context.CashDetail_search_lineByResource(listbox_line[\'resourceId\'],line_portal_type) # Search if current object contain line with the gived portal type\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 if old_line is not None: # Line found, delete it\n
context.manage_delObjects(old_line.getId())\n context.manage_delObjects(old_line.getId())\n
\n \n
\n \n
previous_resourceId = listbox_line[\'resourceId\']\n previous_resourceId = listbox_line[\'resource_id\']\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resourceId\'])\n resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resource_id\'])\n
resource_object = resource_list[0].getObject()\n resource_object = resource_list[0].getObject()\n
\n \n
if columnBase == \'cashStatus\':\n if columnBase == \'cash_status\':\n
if len(emissionLetter_list ) > 1 :\n if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' + listbox_line[\'emissionLetter\']\n cell_emissionLetter = \'emission_letter/\' + listbox_line[\'emission_letter\']\n
else :\n else :\n
cell_emissionLetter = \'emission_letter/\' + emissionLetter_list[0]\n cell_emissionLetter = \'emission_letter/\' + emissionLetter_list[0]\n
if len(variation_list ) > 1 :\n if len(variation_list ) > 1 :\n
...@@ -199,9 +199,9 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -199,9 +199,9 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
axis_list_dict = {\'column\':cashStatus_list,\'line1\': emissionLetter_list ,\'line2\': variation_list}\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 axis_dict = {\'column\':\'cash_status\',\'line1\': \'emission_letter\' ,\'line2\': \'variation\'}\n
base_line_category_list = (cell_variation,cell_emissionLetter)\n base_line_category_list = (cell_variation,cell_emissionLetter)\n
elif columnBase == \'emissionLetter\':\n elif columnBase == \'emission_letter\':\n
if len(cashStatus_list ) > 1 :\n if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cashStatus\']\n cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n
else :\n else :\n
cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n
if len(variation_list ) > 1 :\n if len(variation_list ) > 1 :\n
...@@ -213,11 +213,11 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -213,11 +213,11 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
base_line_category_list = (cell_variation,cell_cashStatus)\n base_line_category_list = (cell_variation,cell_cashStatus)\n
else:\n else:\n
if len(emissionLetter_list ) > 1 :\n if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' +listbox_line[\'emissionLetter\']\n cell_emissionLetter = \'emission_letter/\' +listbox_line[\'emission_letter\']\n
else :\n else :\n
cell_emissionLetter = \'emission_letter/\' +emissionLetter_list[0]\n cell_emissionLetter = \'emission_letter/\' +emissionLetter_list[0]\n
if len(cashStatus_list ) > 1 :\n if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cashStatus\']\n cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n
else :\n else :\n
cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n
axis_list_dict = {\'column\':variation_list,\'line1\': emissionLetter_list ,\'line2\': cashStatus_list}\n axis_list_dict = {\'column\':variation_list,\'line1\': emissionLetter_list ,\'line2\': cashStatus_list}\n
...@@ -229,16 +229,16 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n ...@@ -229,16 +229,16 @@ for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n
counter += 1\n counter += 1\n
cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n
if cell_quantity <> 0 : # input quantity in the listbox\n if cell_quantity <> 0 : # input quantity in the listbox\n
if columnBase == \'cashStatus\':\n if columnBase == \'cash_status\':\n
cell_cashStatus = \'cash_status/\'+col\n cell_cashStatus = \'cash_status/\'+col\n
elif columnBase == \'emissionLetter\':\n elif columnBase == \'emission_letter\':\n
cell_emissionLetter = \'emission_letter/\' +col\n cell_emissionLetter = \'emission_letter/\' +col\n
else:\n else:\n
cell_variation = \'variation/\'+col\n cell_variation = \'variation/\'+col\n
# check that the variation selected exist for the resource object\n # check that the variation selected exist for the resource object\n
if col != \'not_defined\' and col not in resource_object.getVariationList():\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 raise "Input Error", "%s doesn\'t exist for %s" %(resource_object.getTitle(), col)\n
\n \n
cell_category_list += [{\'emission_letter\':cell_emissionLetter ,\'variation\':cell_variation, \'cash_status\':cell_cashStatus, \'quantity\':cell_quantity}]\n cell_category_list += [{\'emission_letter\':cell_emissionLetter ,\'variation\':cell_variation, \'cash_status\':cell_cashStatus, \'quantity\':cell_quantity}]\n
\n \n
create_line = True\n create_line = True\n
...@@ -290,7 +290,9 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -290,7 +290,9 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -329,7 +331,6 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -329,7 +331,6 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>otherParameter_list</string> <string>otherParameter_list</string>
<string>updatePossible</string> <string>updatePossible</string>
<string>columnBase</string> <string>columnBase</string>
<string>int</string>
<string>useInventory</string> <string>useInventory</string>
<string>len</string> <string>len</string>
<string>numberOfColumn</string> <string>numberOfColumn</string>
...@@ -380,6 +381,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -380,6 +381,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>categoy_list_created</string> <string>categoy_list_created</string>
<string>counter</string> <string>counter</string>
<string>col</string> <string>col</string>
<string>int</string>
<string>str</string> <string>str</string>
<string>cell_quantity</string> <string>cell_quantity</string>
<string>base_line_category</string> <string>base_line_category</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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[
cell_base_id = \'movement\'\n
\n
variation_list = kw[\'variation_list\']\n
emissionLetter_list = kw[\'emissionLetter_list\']\n
cashStatus_list = kw[\'cashStatus_list\']\n
operationCurrency = kw[\'operation_currency\']\n
line_portal_type = kw[\'line_portalType\']\n
\n
otherParameter_list = kw[\'otherParameter\']\n
operationCurrency = otherParameter_list[0]\n
line_portal_type = otherParameter_list[1]\n
updatePossible = otherParameter_list[2]\n
columnBase = otherParameter_list[3]\n
useInventory = int(otherParameter_list[4])\n
\n
if columnBase == \'emissionLetter\':\n
numberOfColumn = len(emissionLetter_list)\n
elif columnBase == \'cashStatus\':\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
else:\n
listbox_line_count_plus_1 = listbox_line_count\n
\n
last_row = False\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
\n
if i_listbox >= listbox_line_count:\n
last_row = True\n
else:\n
listbox_line = listbox[i_listbox]\n
\n
if last_row or (previous_resourceId is None) or not (previous_resourceId == listbox_line[\'resourceId\']):\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
\n
if cell_range_key_list <> [[None, None]] :\n
i = 0\n
context.log(\'cell range key list\', cell_range_key_list)\n
for k in cell_range_key_list:\n
category_list = filter(lambda k_item: k_item is not None, k)\n
context.log(\'category list\', category_list)\n
c = new_line.newCell(*k, **kwd)\n
mapped_value_list = [\'price\',]\n
if useInventory == 1:\n
mapped_value_list.append(\'inventory\')\n
else:\n
mapped_value_list.append(\'quantity\')\n
c.edit( mapped_value_property_list = mapped_value_list\n
,force_update = 1\n
,membership_criterion_category_list = category_list\n
,category_list = category_list\n
)\n
\n
context.log(\'cell category list\', cell_category_list)\n
for cell_category in cell_category_list :\n
variante_list = [cell_category[\'emission_letter\'], cell_category[\'variation\'], cell_category[\'cash_status\']]\n
cell = new_line.getCell(base_id = cell_base_id , *variante_list )\n
if cell is None :\n
raise \'ERROR\', repr((test,cell_category[\'quantity\'], cell , new_line.getCellKeyList(base_id=\'movement\'), variante_list ))\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
)\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
)\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[\'resourceId\'],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[\'resourceId\']\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resourceId\'])\n
resource_object = resource_list[0].getObject()\n
\n
if columnBase == \'cashStatus\':\n
if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' + listbox_line[\'emissionLetter\']\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 == \'emissionLetter\':\n
if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cashStatus\']\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
else:\n
if len(emissionLetter_list ) > 1 :\n
cell_emissionLetter = \'emission_letter/\' +listbox_line[\'emissionLetter\']\n
else :\n
cell_emissionLetter = \'emission_letter/\' +emissionLetter_list[0]\n
if len(cashStatus_list ) > 1 :\n
cell_cashStatus = \'cash_status/\'+listbox_line[\'cashStatus\']\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 == \'cashStatus\':\n
cell_cashStatus = \'cash_status/\'+col\n
elif columnBase == \'emissionLetter\':\n
cell_emissionLetter = \'emission_letter/\' +col\n
else:\n
cell_variation = \'variation/\'+col\n
# check that the variation selected exist for the resource object\n
if 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
\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
)\n
request[ \'RESPONSE\' ].redirect( redirect_url )\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_fastInputSave_backup</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>listbox=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>listbox</string>
<string>kw</string>
<string>cell_base_id</string>
<string>_getitem_</string>
<string>variation_list</string>
<string>emissionLetter_list</string>
<string>cashStatus_list</string>
<string>operationCurrency</string>
<string>line_portal_type</string>
<string>otherParameter_list</string>
<string>updatePossible</string>
<string>columnBase</string>
<string>int</string>
<string>useInventory</string>
<string>len</string>
<string>numberOfColumn</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>resource_object</string>
<string>line_category_list</string>
<string>kwd</string>
<string>cell_range_key_list</string>
<string>i</string>
<string>k</string>
<string>filter</string>
<string>category_list</string>
<string>_apply_</string>
<string>c</string>
<string>mapped_value_list</string>
<string>cell_category_list</string>
<string>cell_category</string>
<string>variante_list</string>
<string>cell</string>
<string>repr</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>str</string>
<string>cell_quantity</string>
<string>base_line_category</string>
<string>column_category</string>
<string>request</string>
<string>redirect_url</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CashDetail_fastInputSave_backup</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -68,42 +68,42 @@ ...@@ -68,42 +68,42 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n <value> <string>request = context.REQUEST\n
return_value = None\n return_value = None\n
if myChoice == \'emissionLetter_item\':\n if my_choice == \'emission_letter_item\':\n
my_list = getattr(request,\'my_emissionLetter_list\',None) # Find Emission letter on the REQUEST\n my_list = getattr(request,\'my_emission_letter_list\',None) # Find Emission letter on the REQUEST\n
if my_list is None: \n if my_list is None:\n
my_list = getattr(request,\'field_my_emissionLetter_list\',None) # Find Emission letter on the REQUEST\n my_list = getattr(request,\'field_my_emission_letter_list\',None) # Find Emission letter on the REQUEST\n
\n \n
if my_list is not None: \n if my_list is not None:\n
return_value = [x for x in context.portal_categories.emission_letter.getCategoryChildTitleItemList()\n return_value = [x for x in context.portal_categories.emission_letter.getCategoryChildTitleItemList()\n
if x[1] in my_list ]\n if x[1] in my_list ]\n
else: \n else:\n
return_value = [x for x in context.portal_categories.emission_letter.getCategoryChildTitleItemList()]\n return_value = [x for x in context.portal_categories.emission_letter.getCategoryChildTitleItemList()]\n
elif myChoice == \'emissionLetter_defaultValue\':\n elif my_choice == \'emission_letter_default_value\':\n
return_value = getattr(request,\'my_emissionLetter_list\',None) # Find Emission letter on the REQUEST\n return_value = getattr(request,\'my_emission_letter_list\',None) # Find Emission letter on the REQUEST\n
return_value = return_value[1]\n return_value = return_value[1]\n
elif myChoice == \'cashStatus_item\':\n elif my_choice == \'cash_status_item\':\n
my_list = getattr(request,\'my_cashStatus_list\',None) # Find cash Status on the REQUEST\n my_list = getattr(request,\'my_cash_status_list\',None) # Find cash Status on the REQUEST\n
if my_list is None: \n if my_list is None:\n
my_list = getattr(request,\'field_my_cashStatus_list\',None) # Find Emission letter on the REQUEST\n my_list = getattr(request,\'field_my_cash_status_list\',None) # Find Emission letter on the REQUEST\n
if my_list is not None: \n if my_list is not None:\n
return_value = [x for x in context.portal_categories.cash_status.getCategoryChildTitleItemList()\n return_value = [x for x in context.portal_categories.cash_status.getCategoryChildTitleItemList()\n
if x[1] in my_list]\n if x[1] in my_list]\n
else:\n else:\n
return_value = [x for x in context.portal_categories.cash_status.getCategoryChildTitleItemList()]\n return_value = [x for x in context.portal_categories.cash_status.getCategoryChildTitleItemList()]\n
elif myChoice == \'cashStatus_defaultValue\':\n elif my_choice == \'cash_status_default_value\':\n
return_value = getattr(request,\'my_cashStatus_list\',None) # Find cash Status on the REQUEST\n return_value = getattr(request,\'my_cash_status_list\',None) # Find cash Status on the REQUEST\n
return_value = return_value[1]\n return_value = return_value[1]\n
\n \n
elif myChoice == \'variation_item\':\n elif my_choice == \'variation_item\':\n
my_list = getattr(request,\'my_variation_list\',None) # Find variation on the REQUEST\n my_list = getattr(request,\'my_variation_list\',None) # Find variation on the REQUEST\n
if my_list is None: \n if my_list is None:\n
my_list = getattr(request,\'field_my_variation_list\',None) # Find variation on the REQUEST\n my_list = getattr(request,\'field_my_variation_list\',None) # Find variation on the REQUEST\n
if my_list is not None: \n if my_list is not None:\n
return_value = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()\n return_value = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()\n
if x[1] in my_list]\n if x[1] in my_list]\n
else:\n else:\n
return_value = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()]\n return_value = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()]\n
elif myChoice == \'variation_defaultValue\':\n elif my_choice == \'variation_default_value\':\n
return_value = getattr(request,\'my_variation_list\',None) # Find variation on the REQUEST\n return_value = getattr(request,\'my_variation_list\',None) # Find variation on the REQUEST\n
return_value = return_value[1]\n return_value = return_value[1]\n
\n \n
...@@ -117,6 +117,12 @@ return return_value\n ...@@ -117,6 +117,12 @@ return return_value\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_getOthersForMatrixInput</string> </value> <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_getOthersForMatrixInput</string> </value>
...@@ -129,7 +135,7 @@ return return_value\n ...@@ -129,7 +135,7 @@ return return_value\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>myChoice=None, **kw</string> </value> <value> <string>my_choice=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -155,7 +161,7 @@ return return_value\n ...@@ -155,7 +161,7 @@ return return_value\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>myChoice</string> <string>my_choice</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -198,4 +204,25 @@ return return_value\n ...@@ -198,4 +204,25 @@ return return_value\n
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -69,70 +69,70 @@ ...@@ -69,70 +69,70 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
request = context.REQUEST\n request = context.REQUEST\n
default_emissionLetter_list = getattr(request,\'my_emissionLetter_list\',None) # Find Emission letter on the REQUEST\n default_emission_letter_list = getattr(request,\'my_emission_letter_list\',None) # Find Emission letter on the REQUEST\n
default_cashStatus_list = getattr(request,\'my_cashStatus_list\',None) # Find Cash Status on the REQUEST\n default_cash_status_list = getattr(request,\'my_cash_status_list\',None) # Find Cash Status on the REQUEST\n
default_variation_list = getattr(request,\'my_variation_list\',None) # Find Variation on the REQUEST\n default_variation_list = getattr(request,\'my_variation_list\',None) # Find Variation on the REQUEST\n
default_otherParameter_list = getattr(request,\'my_otherParameter\',None) # Find Variation on the REQUEST\n default_other_parameter_list = getattr(request,\'my_other_parameter\',None) # Find Variation on the REQUEST\n
\n \n
\n \n
return_list = []\n return_list = []\n
return_list.append([\'displayed_resource\',\'Resource\'])\n return_list.append([\'displayed_resource\',\'Resource\'])\n
\n \n
\n \n
if default_emissionLetter_list is None:\n if default_emission_letter_list is None:\n
default_emissionLetter_list = getattr(request,\'field_my_emissionLetter_list\',None) # Find Emission letter on the REQUEST\n default_emission_letter_list = getattr(request,\'field_my_emission_letter_list\',[]) # Find Emission letter on the REQUEST\n
default_cashStatus_list = getattr(request,\'field_my_cashStatus_list\',None) # Find Cash Status on the REQUEST\n default_cash_status_list = getattr(request,\'field_my_cash_status_list\',[]) # Find Cash Status on the REQUEST\n
default_variation_list = getattr(request,\'field_my_variation_list\',None) # Find Variation on the REQUEST\n default_variation_list = getattr(request,\'field_my_variation_list\',[]) # Find Variation on the REQUEST\n
default_otherParameter_list = getattr(request,\'field_my_otherParameter\',None) # Find Variation on the REQUEST\n default_other_parameter_list = getattr(request,\'field_my_other_parameter\', []) # Find Variation on the REQUEST\n
\n \n
if len(default_otherParameter_list) > 2:\n \n
default_columnBase = default_otherParameter_list[3]\n if len(default_other_parameter_list) > 2:\n
default_column_base = default_other_parameter_list[3]\n
else :\n else :\n
default_columnBase = \'variation\'\n default_column_base = \'variation\'\n
\n \n
allow_addLine = False\n allow_add_line = False\n
if len(default_emissionLetter_list) > 1 and default_columnBase <> \'emissionLetter\':\n if len(default_emission_letter_list) > 1 and default_column_base <> \'emission_letter\':\n
return_list.append([\'emissionLetter\',\'Emission Letter\'])\n return_list.append([\'emission_letter\',\'Emission Letter\'])\n
allow_addLine = True\n allow_add_line = True\n
if len(default_cashStatus_list) > 1 and default_columnBase <> \'cashStatus\':\n if len(default_cash_status_list) > 1 and default_column_base <> \'cash_status\':\n
return_list.append([\'cashStatus\',\'Cash Status\'])\n return_list.append([\'cash_status\',\'Cash Status\'])\n
allow_addLine = True\n allow_add_line = True\n
if len(default_variation_list) > 1 and default_columnBase <> \'variation\':\n if len(default_variation_list) > 1 and default_column_base <> \'variation\':\n
return_list.append([\'variation\',\'Variation\'])\n return_list.append([\'variation\',\'Variation\'])\n
allow_addLine = True\n allow_add_line = True\n
\n \n
if allow_addLine:\n if allow_add_line:\n
return_list.append([\'numberLineToAdd\',\'numberLineToAdd\'])\n return_list.append([\'number_line_to_add\',\'Lines To Add\'])\n
\n \n
\n \n
if default_columnBase == \'cashStatus\':\n if default_column_base == \'cash_status\':\n
default_columnBase_list = default_cashStatus_list\n default_column_base_list = default_cash_status_list\n
column_category = \'cash_status\'\n column_category = \'cash_status\'\n
elif default_columnBase == \'emissionLetter\':\n elif default_column_base == \'emission_letter\':\n
default_columnBase_list = default_emissionLetter_list\n default_column_base_list = default_emission_letter_list\n
column_category = \'emission_letter\'\n column_category = \'emission_letter\'\n
else:\n else:\n
default_columnBase_list = default_variation_list\n default_column_base_list = default_variation_list\n
column_category = \'variation\'\n column_category = \'variation\'\n
\n \n
\n \n
\n \n
if len(default_columnBase_list) > 0 :\n if len(default_column_base_list) > 0 :\n
columnBase_list = [x for x in context.portal_categories[column_category].getCategoryChildTitleItemList()[1:]\n column_base_list = [x for x in context.portal_categories[column_category].getCategoryChildTitleItemList()[1:]\n
if x[1] in default_columnBase_list]\n if x[1] in default_column_base_list]\n
else:\n else:\n
columnBase_list = context.portal_categories[column_category].getCategoryChildTitleItemList()[1:]\n column_base_list = context.portal_categories[column_category].getCategoryChildTitleItemList()[1:]\n
\n \n
\n \n
\n \n
counter = 1\n counter = 1\n
for x in columnBase_list:\n for x in column_base_list:\n
return_list.append([\'column\'+str(counter),x[0]])\n return_list.append([\'column\'+str(counter),x[0]])\n
counter += 1\n counter += 1\n
return_list.append([\'price\',\'Price\'])\n return_list.append([\'price\',\'Price\'])\n
return_list.append([\'resource\',\'\'])\n return_list.append([\'resource_translated_title\',\'\'])\n
return_list.append([\'resourceId\',\'\'])\n return_list.append([\'resource_id\',\'\'])\n
#context.log(\'CashDetail_getVariationForMatrixInput\', return_list)\n
return return_list\n return return_list\n
...@@ -194,24 +194,24 @@ return return_list\n ...@@ -194,24 +194,24 @@ return return_list\n
<string>request</string> <string>request</string>
<string>getattr</string> <string>getattr</string>
<string>None</string> <string>None</string>
<string>default_emissionLetter_list</string> <string>default_emission_letter_list</string>
<string>default_cashStatus_list</string> <string>default_cash_status_list</string>
<string>default_variation_list</string> <string>default_variation_list</string>
<string>default_otherParameter_list</string> <string>default_other_parameter_list</string>
<string>return_list</string> <string>return_list</string>
<string>len</string> <string>len</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>default_columnBase</string> <string>default_column_base</string>
<string>False</string> <string>False</string>
<string>allow_addLine</string> <string>allow_add_line</string>
<string>True</string> <string>True</string>
<string>default_columnBase_list</string> <string>default_column_base_list</string>
<string>column_category</string> <string>column_category</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>x</string> <string>x</string>
<string>columnBase_list</string> <string>column_base_list</string>
<string>counter</string> <string>counter</string>
<string>str</string> <string>str</string>
</tuple> </tuple>
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
</item> </item>
<item> <item>
<key> <string>required</string> </key> <key> <string>required</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Caisse en bois</string> </value> <value> <string>Cash Container Line</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Enregister</string> </value> <value> <string>Save</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Caisse en bois</string> </value> <value> <string>Cash Container</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</item> </item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string>Base_edit</string> </value>
</item> </item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
......
...@@ -240,7 +240,7 @@ AND\t\n ...@@ -240,7 +240,7 @@ AND\t\n
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Comment: Exact copy from erp5_trade</string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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>from Products.ERP5Form.Report import ReportSection\n
\n
result = []\n
\n
# Use Cases\n
result.append(\n
ReportSection(path=context.getPhysicalPath(), \n
title=\'Use Cases\', \n
form_id=None,\n
level=1,\n
) \n
)\n
\n
use_case = context.use_case\n
\n
for o in use_case.contentValues():\n
result.append(\n
ReportSection(path=o.getPhysicalPath(), \n
title=\'Use Case de %s \' % o.getTitle(), \n
level=2,\n
form_id=\'UseCase_viewUseCaseActors\',\n
) \n
)\n
for a in o.contentValues(filter={\'portal_type\' : \'Use Case Scenario\'}):\n
result.append(\n
ReportSection(path=a.getPhysicalPath(), \n
title=\'Sc\xc3\xa9nario %s\' % a.getTitle(), \n
level=3,\n
form_id=\'UseCaseScenario_view\',\n
) \n
)\n
\n
# Analyse documentaire\n
result.append(\n
ReportSection(path=context.getPhysicalPath(), \n
title=\'Analyse documentaire: Documents\', \n
form_id=None,\n
level=1,\n
) \n
)\n
\n
document_analysis = context.document_analysis[\'1\']\n
\n
for o in document_analysis.contentValues(filter={\'portal_type\' : \'Document Analysis Document\'}):\n
result.append(\n
ReportSection(path=o.getPhysicalPath(), \n
title=\'Structure documentaire de %s \' % o.getTitle(), \n
level=2,\n
form_id=\'DocumentAnalysisDocument_viewItems\',\n
) \n
)\n
\n
\n
\n
# Analyse documentaire\n
result.append(\n
ReportSection(path=context.getPhysicalPath(), \n
title=\'Analyse documentaire: Lexiques\', \n
form_id=None,\n
level=1,\n
) \n
)\n
\n
document_analysis = context.document_analysis[\'1\']\n
\n
for o in document_analysis.contentValues(filter={\'portal_type\' : \'Document Analysis Lexicon\'}):\n
result.append(\n
ReportSection(path=o.getPhysicalPath(), \n
title=\'Lexique de %s \' % o.getTitle(), \n
level=2,\n
form_id=\'DocumentAnalysisLexicon_view\',\n
) \n
)\n
\n
\n
return result\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/Document_getReportSectionList</string> </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>Products.ERP5Form.Report</string>
<string>ReportSection</string>
<string>result</string>
<string>_getattr_</string>
<string>context</string>
<string>None</string>
<string>use_case</string>
<string>_getiter_</string>
<string>o</string>
<string>a</string>
<string>_getitem_</string>
<string>document_analysis</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>Document_getReportSectionList</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Move this to erp5_consulting ?</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Report</string>
<string>ERP5Report</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></string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>Default</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>Default</string> </key>
<value>
<list>
<string>my_title</string>
<string>my_date</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewBookReport</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Document_viewBookReport</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>report_view</string> </value>
</item>
<item>
<key> <string>report_method</string> </key>
<value> <string>Document_getReportSectionList</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>Rapport d\'Analyse (Move this to erp5_consulting ?)</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></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>DateTimeField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_date</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>datetime_out_of_range</string> </key>
<value> <string>The date and time you entered were out of range.</string> </value>
</item>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>not_datetime</string> </key>
<value> <string>You did not enter a valid date and time.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>allow_empty_time</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>ampm_time_style</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>date_only</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>date_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_now</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</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>end_datetime</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>input_order</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>input_style</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start_datetime</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>time_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>sub_form</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>allow_empty_time</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>ampm_time_style</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>date_only</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>date_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default_now</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</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>end_datetime</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>input_order</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>input_style</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start_datetime</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>time_separator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>allow_empty_time</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>ampm_time_style</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>date_only</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>date_separator</string> </key>
<value> <string>/</string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>default_now</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end_datetime</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>input_order</string> </key>
<value> <string>ymd</string> </value>
</item>
<item>
<key> <string>input_style</string> </key>
<value> <string>text</string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>start_datetime</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>time_separator</string> </key>
<value> <string>:</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Date</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.Form</string>
<string>BasicForm</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>fields</string> </key>
<value>
<dictionary>
<item>
<key> <string>ampm</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>day</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>hour</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
<item>
<key> <string>minute</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
<item>
<key> <string>month</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
<item>
<key> <string>year</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>Default</string>
<string>date</string>
<string>time</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>Default</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>date</string> </key>
<value>
<list>
<string>year</string>
<string>month</string>
<string>day</string>
</list>
</value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<list>
<string>hour</string>
<string>minute</string>
<string>ampm</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>ISO-8859-1</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Basic Form</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<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>ampm</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> <int>2</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</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>0</int> </value>
</item>
<item>
<key> <string>max_length</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>am/pm</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>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>day</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>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input 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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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> <int>2</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end</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> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Day</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>hour</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>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input 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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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> <int>2</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end</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> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Hour</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>minute</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>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input 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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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> <int>2</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end</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> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Minute</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>month</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>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input 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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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> <int>2</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end</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> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Month</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="8" aka="AAAAAAAAAAg=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>IntegerField</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>year</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>integer_out_of_range</string> </key>
<value> <string>The integer you entered was out of range.</string> </value>
</item>
<item>
<key> <string>not_integer</string> </key>
<value> <string>You did not enter an integer.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input 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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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>end</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>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</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> <int>4</int> </value>
</item>
<item>
<key> <string>display_width</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>end</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> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Year</string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_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>20</int> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</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>0</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>Title</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>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Import CSV file - Move to erp5_core ?</string> </value> <value> <string>Import CSV File</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -456,7 +456,7 @@ return printed\n ...@@ -456,7 +456,7 @@ return printed\n
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Move to erp5_core ?</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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[
output_string = str(value)\n
int_string = output_string\n
end_string = \'\'\n
\n
if output_string.find(\'.\')>=0:\n
int_string = output_string.split(\'.\')[0]\n
end_string = \'.\' + output_string.split(\'.\')[1]\n
\n
int_len = len(int_string)\n
output_string = int_string\n
if int_len>3:\n
output_string = \'\'\n
i = int_len % 3 or 3\n
output_string = int_string[0:i]\n
while i <= int_len-3:\n
output_string += sep + int_string[i:i+3]\n
i+= 3\n
\n
output_string = output_string + end_string\n
return output_string\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/erp5/portal_skins/erp5_banking_core/Integer_toString</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>value,sep=\' \'</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>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>value</string>
<string>sep</string>
<string>str</string>
<string>output_string</string>
<string>int_string</string>
<string>end_string</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>len</string>
<string>int_len</string>
<string>i</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<string> </string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Integer_toString</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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[
# list of all variation in the portal category\n
catalog_variation_list = context.portal_categories.variation.getCategoryChildTitleItemList()[1:] \n
\n
# List of elements on the input listbox\n
for x in listbox :\n
resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = x[\'Id_resource\'])\n
resourceVariation_list = resource_list[0].getObject().getVariationIdList()\n
counter = 1\n
for y in catalog_variation_list:\n
if int(x[\'variation\'+str(counter)] or 0) <> 0 : \n
if y[1] not in resourceVariation_list :\n
return 0 \n
counter += 1 \n
return 1\n
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/VariationList_ok</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>listbox=None, **kw</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>listbox</string>
<string>kw</string>
<string>_getitem_</string>
<string>_getattr_</string>
<string>context</string>
<string>catalog_variation_list</string>
<string>_getiter_</string>
<string>x</string>
<string>resource_list</string>
<string>resourceVariation_list</string>
<string>counter</string>
<string>y</string>
<string>int</string>
<string>str</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>VariationList_ok</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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>variation_list = context.portal_categories.variation.getCategoryChildTitleItemList()[1:]\n
return_list = [[\'displayed_resource\',\'Coupure\']]\n
counter = 1\n
for x in variation_list:\n
return_list.append([\'variation\'+str(counter),x[0]])\n
# x[counter-1][1]\n
counter += 1\n
return_list.append([\'price\',\'Montant\'])\n
return_list.append([\'resource\',\'\'])\n
return_list.append([\'Id_resource\',\'\'])\n
return return_list\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/getVariationForMatrixInput</string> </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>_getitem_</string>
<string>_getattr_</string>
<string>context</string>
<string>variation_list</string>
<string>return_list</string>
<string>counter</string>
<string>_getiter_</string>
<string>x</string>
<string>str</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>getVariationForMatrixInput</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value> <string encoding="base64">bfINCg==</string> </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>sourceline_list = [x for x in context.contentValues(filter={\'portal_type\':(\'Check Payment Line\',\'Money Deposit Line\')})\n
if x.getResourceValue().getTitle() == resourceTitle]\n
\n
if len(sourceline_list) == 0 :\n
return None\n
else:\n
return sourceline_list[0]\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/searchLineByResource</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>resourceTitle=None</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>resourceTitle</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>x</string>
<string>sourceline_list</string>
<string>len</string>
<string>None</string>
<string>_getitem_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>searchLineByResource</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2006-05-5 aurel
* clean up the skins
2006-04-13 aurel 2006-04-13 aurel
* include bank_account * include bank_account
......
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