[Erp5-report] r27150 - in /erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 25 12:01:08 CEST 2009
Author: jerome
Date: Mon May 25 12:01:07 2009
New Revision: 27150
URL: http://svn.erp5.org?rev=27150&view=rev
Log:
rename dialog and scripts to associate items to a delivery line
Removed:
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_getSelectFastInputItemList.xml
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_setItemForSelectFastInputList.xml
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_updateSelectItemFastInputDialog.xml
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog/
erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog.xml
Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_getSelectFastInputItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_getSelectFastInputItemList.xml?rev=27149&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_getSelectFastInputItemList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_getSelectFastInputItemList.xml (removed)
@@ -1,185 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>Script_magic</string> </key>
- <value> <int>3</int> </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.ERP5Type.Document import newTempBase\n
-portal = context.getPortalObject()\n
-if context.getPortalType()==\'Sale Packing List Line\':\n
- cell_portal_type = \'Sale Packing List Cell\'\n
-elif context.getPortalType()==\'Inventory Line\':\n
- cell_portal_type = \'Inventory Cell\'\n
-elif context.getPortalType()==\'Internal Packing List Line\':\n
- cell_portal_type = \'Internal Packing List Cell\'\n
-result = [x.getObject() for x in context.portal_catalog(portal_type=\'Item\')]\n
-result_list = []\n
-new_list = filter(\n
- lambda x :(x.Item_getResourceTitle()==context.getResourceTitle()),\n
- result)\n
-\n
-splc_list= context.contentValues(portal_type=cell_portal_type)\n
-if not splc_list:\n
- return new_list\n
-for splc in splc_list:\n
- item_list = filter(\n
- lambda x :(x.Item_getVariationCategoryList()==splc.getVariationCategoryList()),\n
- new_list)\n
- result_list.extend(item_list)\n
-len_res_list = len(result_list)\n
-\n
-\n
-result = []\n
-\n
-return result_list\n
-for item in result_list:\n
- variation_list = item.Item_getVariationCategoryList()\n
- if variation_list !=[]:\n
- obj = newTempBase(portal,id="tmp_item_%s" % item.getId(), uid="new_item_%s" % item.getId())\n
- obj.edit(title=item.Item_getResourceTitle(),\n
- reference=item.getReference(),\n
- size=variation_list[1],\n
- quantity=item.getQuantity(),\n
- quality_grade=variation_list[0],\n
- variation_category_list =variation_list)\n
- result.append(obj)\n
-\n
-return result\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>*args, **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>0</int> </value>
- </item>
- <item>
- <key> <string>co_varnames</string> </key>
- <value>
- <tuple>
- <string>args</string>
- <string>kw</string>
- <string>Products.ERP5Type.Document</string>
- <string>newTempBase</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>portal</string>
- <string>cell_portal_type</string>
- <string>append</string>
- <string>$append0</string>
- <string>_getiter_</string>
- <string>x</string>
- <string>result</string>
- <string>result_list</string>
- <string>filter</string>
- <string>new_list</string>
- <string>splc_list</string>
- <string>splc</string>
- <string>item_list</string>
- <string>len</string>
- <string>len_res_list</string>
- <string>item</string>
- <string>variation_list</string>
- <string>obj</string>
- <string>_getitem_</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>SalePackingList_getSelectFastInputItemList</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_setItemForSelectFastInputList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_setItemForSelectFastInputList.xml?rev=27149&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_setItemForSelectFastInputList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_setItemForSelectFastInputList.xml (removed)
@@ -1,187 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>Script_magic</string> </key>
- <value> <int>3</int> </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.ERP5Type.Message import translateString\n
-item_list = []\n
-request = context.REQUEST\n
-total_quantity = 0.0 \n
-new_item_list =[]\n
-context.setAggregateValueList([])\n
-type = request.get("field_my_type")\n
-if context.getPortalType()==\'Sale Packing List Line\':\n
- cell_portal_type = \'Sale Packing List Cell\'\n
-elif context.getPortalType()==\'Inventory Line\':\n
- cell_portal_type = \'Inventory Cell\'\n
-elif context.getPortalType()==\'Internal Packing List Line\':\n
- cell_portal_type = \'Internal Packing List Cell\'\n
-base_id = \'movement\'\n
-splc_list= context.contentValues(portal_type=cell_portal_type)\n
-for line in kw.get(\'listbox\'): \n
- if line[\'selection_check\']:\n
- item = context.portal_catalog.getResultValue(\n
- relative_url=line["listbox_key"].split("erp5/")[-1])\n
- item_list.append(item)\n
-variation_dict = {} \n
-for item in item_list: \n
- variation_list = item.Item_getVariationOnDefinedOnItem()\n
- if variation_list not in variation_dict:\n
- variation_dict[variation_list] = 0.0 \n
- variation_dict[variation_list] = variation_dict[variation_list] + item.getQuantity()\n
-for cell in splc_list:\n
- for item in item_list:\n
- if item.Item_getVariationCategoryList() == cell.getVariationCategoryList():\n
- new_item_list=[]\n
- new_item_list.append(item) \n
- cell.setAggregateValueList(context.getAggregateValueList()+ new_item_list)\n
- variation_cell_list = \',\'.join([x[0] for x in cell.getVariationCategoryItemList()])\n
- cell.setQuantity(variation_dict[variation_cell_list])\n
-\n
-\n
-return context.Base_redirect(form_id, keep_items=dict(\n
- portal_status_message=translateString(\'Items aggregated\')))\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>form_id=\'view\',*args, **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>form_id</string>
- <string>args</string>
- <string>kw</string>
- <string>Products.ERP5Type.Message</string>
- <string>translateString</string>
- <string>item_list</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>request</string>
- <string>total_quantity</string>
- <string>new_item_list</string>
- <string>type</string>
- <string>cell_portal_type</string>
- <string>base_id</string>
- <string>splc_list</string>
- <string>_getiter_</string>
- <string>line</string>
- <string>_getitem_</string>
- <string>item</string>
- <string>variation_dict</string>
- <string>variation_list</string>
- <string>_write_</string>
- <string>cell</string>
- <string>append</string>
- <string>$append0</string>
- <string>x</string>
- <string>variation_cell_list</string>
- <string>dict</string>
- </tuple>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>func_defaults</string> </key>
- <value>
- <tuple>
- <string>view</string>
- </tuple>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>SalePackingList_setItemForSelectFastInputList</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_updateSelectItemFastInputDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_updateSelectItemFastInputDialog.xml?rev=27149&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_updateSelectItemFastInputDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_updateSelectItemFastInputDialog.xml (removed)
@@ -1,191 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>Script_magic</string> </key>
- <value> <int>3</int> </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>"""\n
- This script just returns what the user entered in\n
- the fast input form.\n
-"""\n
-request= context.REQUEST\n
-item_list=[]\n
-portal = context.getPortalObject()\n
-Base_translateString = portal.Base_translateString\n
-if context.getPortalType()==\'Sale Packing List Line\':\n
- cell_portal_type = \'Sale Packing List Cell\'\n
-elif context.getPortalType()==\'Inventory Line\':\n
- cell_portal_type = \'Inventory Cell\'\n
-elif context.getPortalType()==\'Internal Packing List Line\':\n
- cell_portal_type = \'Internal Packing List Cell\'\n
-context.Base_updateDialogForm(listbox=listbox)\n
-\n
-for line in listbox: \n
- if line["selection_check"]==1:\n
- item = context.portal_catalog.getResultValue(\n
- relative_url=line["listbox_key"].split("erp5/")[-1])\n
- item_list.append(item)\n
-variation_dict = {} \n
-for item in item_list: \n
- variation_list = item.Item_getVariationOnDefinedOnItem()\n
- if variation_list not in variation_dict:\n
- variation_dict[variation_list] = 0.0 \n
- variation_dict[variation_list] = variation_dict[variation_list] + item.getQuantity()\n
-\n
-splc_list= context.contentValues(portal_type=cell_portal_type)\n
-variation_cell_dict = {}\n
-for splc in splc_list:\n
- variation_cell_list = \',\'.join([x[0] for x in splc.getVariationCategoryItemList()])\n
- variation_cell_dict[variation_cell_list]= splc.getQuantity()\n
-final_variation_dict={}\n
-for key in variation_cell_dict:\n
- final_variation_dict[key] = "%s/%s"%(variation_cell_dict[key],variation_dict[key])\n
-\n
- \n
-\n
-request.set(\'portal_status_message\',\n
- Base_translateString(\n
- \'Quantity Defined On Packing List %s\' %(final_variation_dict)))\n
-\n
-return context.SalePackingList_viewSelectItemFastInputDialog(**kw)\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>listbox=[],**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>_getattr_</string>
- <string>context</string>
- <string>request</string>
- <string>item_list</string>
- <string>portal</string>
- <string>Base_translateString</string>
- <string>cell_portal_type</string>
- <string>_getiter_</string>
- <string>line</string>
- <string>_getitem_</string>
- <string>item</string>
- <string>variation_dict</string>
- <string>variation_list</string>
- <string>_write_</string>
- <string>splc_list</string>
- <string>variation_cell_dict</string>
- <string>splc</string>
- <string>append</string>
- <string>$append0</string>
- <string>x</string>
- <string>variation_cell_list</string>
- <string>final_variation_dict</string>
- <string>key</string>
- <string>_apply_</string>
- </tuple>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>func_defaults</string> </key>
- <value>
- <tuple>
- <list/>
- </tuple>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>SalePackingList_updateSelectItemFastInputDialog</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog.xml?rev=27149&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/SalePackingList_viewSelectItemFastInputDialog.xml (removed)
@@ -1,162 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ERP5Form" module="Products.ERP5Form.Form"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <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>action</string> </key>
- <value> <string>SalePackingList_setItemForSelectFastInputList</string> </value>
- </item>
- <item>
- <key> <string>description</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>edit_order</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>encoding</string> </key>
- <value> <string>UTF-8</string> </value>
- </item>
- <item>
- <key> <string>enctype</string> </key>
- <value> <string>application/x-www-form-urlencoded</string> </value>
- </item>
- <item>
- <key> <string>group_list</string> </key>
- <value>
- <list>
- <string>left</string>
- <string>right</string>
- <string>center</string>
- <string>bottom</string>
- <string>hidden</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>groups</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>bottom</string> </key>
- <value>
- <list>
- <string>listbox</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>center</string> </key>
- <value>
- <list/>
- </value>
- </item>
- <item>
- <key> <string>hidden</string> </key>
- <value>
- <list>
- <string>listbox_quantity</string>
- <string>listbox_reference</string>
- <string>listbox_title</string>
- <string>listbox_selection_check</string>
- <string>listbox_variation_category_list</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>left</string> </key>
- <value>
- <list>
- <string>my_resource_title</string>
- <string>my_total_quantity</string>
- <string>my_quantity_unit</string>
- <string>my_type</string>
- </list>
- </value>
- </item>
- <item>
- <key> <string>right</string> </key>
- <value>
- <list/>
- </value>
- </item>
- </dictionary>
- </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>SalePackingList_viewSelectItemFastInputDialog</string> </value>
- </item>
- <item>
- <key> <string>method</string> </key>
- <value> <string>POST</string> </value>
- </item>
- <item>
- <key> <string>name</string> </key>
- <value> <string>SalePackingList_viewSelectItemFastInputDialog</string> </value>
- </item>
- <item>
- <key> <string>pt</string> </key>
- <value> <string>form_dialog</string> </value>
- </item>
- <item>
- <key> <string>row_length</string> </key>
- <value> <int>4</int> </value>
- </item>
- <item>
- <key> <string>stored_encoding</string> </key>
- <value> <string>UTF-8</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string>Select Items</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>SalePackingList_updateSelectItemFastInputDialog</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list