[Erp5-report] r27064 - in /erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 19 19:32:13 CEST 2009


Author: mame
Date: Tue May 19 19:32:13 2009
New Revision: 27064

URL: http://svn.erp5.org?rev=27064&view=rev
Log:
2009-05-19 mame
*rename form actions and scripts for delivery line creation on item
*add fast input for selection of items
*modified delete_action transition on item_workflow
*correct script for delivery line fast input creation

Removed:
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog/
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog.xml
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationValidate.xml
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationFormDialog/
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationFormDialog.xml
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationValidate.xml
    erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_view/my_serial_number.xml

Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog.xml?rev=27063&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationFormDialog.xml (removed)
@@ -1,156 +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>ItemModule_createRelatedAffectationValidate</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></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/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>center</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>hidden</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>left</string> </key>
-                    <value>
-                      <list>
-                        <string>your_reference</string>
-                        <string>your_title</string>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>right</string> </key>
-                    <value>
-                      <list>
-                        <string>your_portal_type</string>
-                        <string>your_start_date</string>
-                        <string>your_stop_date</string>
-                      </list>
-                    </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>ItemModule_createRelatedAffectationFormDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>method</string> </key>
-            <value> <string>POST</string> </value>
-        </item>
-        <item>
-            <key> <string>name</string> </key>
-            <value> <string>ItemModule_createAffectationFormDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>pt</string> </key>
-            <value> <string>form_view_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>Create Affectation</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>ItemModule_createRelatedAffectationFormDialog</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationValidate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationValidate.xml?rev=27063&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationValidate.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/ItemModule_createRelatedAffectationValidate.xml (removed)
@@ -1,272 +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># Creates one Order/Packing list per Different Source sections\n
-# Creates one Line per Resource\n
-from Products.ERP5Type.Message import translateString\n
-selection_name = "item_module_selection"\n
-cell_portal_type = \'%s Cell\' % portal_type\n
-portal = context.getPortalObject()\n
-stool = portal.portal_selections\n
-getObject = portal.portal_catalog.getObject\n
-\n
-\n
-stool.updateSelectionCheckedUidList(selection_name, listbox_uid, uids)\n
-selection_uid_list = stool.getSelectionCheckedUidsFor(selection_name)\n
-\n
-if selection_uid_list:\n
-  object_list = [getObject(uid) for uid in selection_uid_list]\n
-else:\n
-  object_list = stool.callSelectionFor(selection_name)\n
-\n
-source_section_list = [  item.Item_getCurrentOwnerTitle(with_title=0) for item in object_list ]\n
-\n
-property_dict = {\'title\':title,\n
-                 \'stop_date\' : stop_date,\n
-                 \'start_date\' : start_date,\n
-                 \'portal_type\' : portal_type, }\n
-\n
-module = context.getDefaultModule(portal_type=portal_type)\n
-line_portal_type = \'%s Line\' % portal_type\n
-\n
-pl_property_dict = {}\n
-for k,v in property_dict.items():\n
-  pl_property_dict[k]=v\n
-\n
-pl_dict = {}\n
-\n
-for ss in source_section_list:\n
-  if ss is not None:\n
-    uid = str(ss.getUid())\n
-  else:\n
-    uid = \'UID\' \n
-\n
-  if not pl_dict.has_key(uid):\n
-    pl_dict[uid] = module.newContent(**pl_property_dict)\n
-    pl_dict[uid].setSourceSectionValue(ss) \n
-\n
-\n
-for item in object_list:\n
-  source_section = item.Item_getCurrentOwnerTitle(with_title=0)\n
-  if source_section is not None:\n
-    if source_section.getUid() is not None:\n
-      pl_value =  pl_dict[str(source_section.getUid())]\n
-  else:\n
-      pl_value =  pl_dict[\'UID\']\n
-\n
-  source = item.Item_getCurrentSiteValue() \n
-  resource = item.Item_getResourceValue()\n
-\n
-  pl_line_dict = {}\n
-  pl_line_dict[\'portal_type\'] = line_portal_type\n
-  \n
-  pl_line_dict[\'title\']= \'%s\' % (item.getReference())\n
-  #pl_line_dict[\'aggregate_value_list\'] = [item]\n
-  pl_line_dict[\'quantity\'] = quantity\n
-  #pl_line_dict[\'quantity_unit\'] = quantity_unit\n
-  pl_line_dict[\'resource_value\'] = resource\n
-  pl_line_dict[\'source_value\'] = source\n
-  pl_line_value = pl_value.newContent(**pl_line_dict)\n
-  if item.Item_getVariationOnMovement()==[]:\n
-    pl_line_value.setAggregateValue(item)\n
-  else:\n
-    pl_line_value.setVariationCategoryList(item.Item_getVariationOnMovement(current=1))\n
-    base_id = \'movement\'\n
-    cell_key_list = list(pl_line_value.getCellKeyList(base_id=base_id))\n
-    cell_key_list.sort()\n
-    for cell_key in cell_key_list: \n
-      cell = pl_line_value.newCell(base_id=base_id, \\\n
-                                portal_type=cell_portal_type,*cell_key)\n
-      cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
-                price=item.getPrice(), quantity=item.getQuantity(),\n
-                predicate_category_list=cell_key,\n
-                variation_category_list=cell_key)\n
-      cell.setAggregateValue(item)\n
-\n
-form_id = \'/\'.join(pl_value.getPhysicalPath())\n
-return context.Base_redirect(form_id, keep_items=dict(\n
-       portal_status_message=translateString(\'Items affected\')))\n
-#context.REQUEST[\'RESPONSE\'].redirect(\'/\'.join(pl_value.getPhysicalPath()))\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string>uids=[], listbox_uid=[],destination=None,destination_section=None,portal_type=None,site_suggestion=None,source=None,source_section=None,start_date=None,quantity=None,stop_date=None,title=\'\',**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>12</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>uids</string>
-                            <string>listbox_uid</string>
-                            <string>destination</string>
-                            <string>destination_section</string>
-                            <string>portal_type</string>
-                            <string>site_suggestion</string>
-                            <string>source</string>
-                            <string>source_section</string>
-                            <string>start_date</string>
-                            <string>quantity</string>
-                            <string>stop_date</string>
-                            <string>title</string>
-                            <string>kw</string>
-                            <string>Products.ERP5Type.Message</string>
-                            <string>translateString</string>
-                            <string>selection_name</string>
-                            <string>cell_portal_type</string>
-                            <string>_getattr_</string>
-                            <string>context</string>
-                            <string>portal</string>
-                            <string>stool</string>
-                            <string>getObject</string>
-                            <string>selection_uid_list</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>_getiter_</string>
-                            <string>uid</string>
-                            <string>object_list</string>
-                            <string>item</string>
-                            <string>source_section_list</string>
-                            <string>property_dict</string>
-                            <string>module</string>
-                            <string>line_portal_type</string>
-                            <string>pl_property_dict</string>
-                            <string>k</string>
-                            <string>v</string>
-                            <string>_write_</string>
-                            <string>pl_dict</string>
-                            <string>ss</string>
-                            <string>None</string>
-                            <string>str</string>
-                            <string>_apply_</string>
-                            <string>_getitem_</string>
-                            <string>pl_value</string>
-                            <string>resource</string>
-                            <string>pl_line_dict</string>
-                            <string>pl_line_value</string>
-                            <string>base_id</string>
-                            <string>list</string>
-                            <string>cell_key_list</string>
-                            <string>cell_key</string>
-                            <string>cell</string>
-                            <string>form_id</string>
-                            <string>dict</string>
-                          </tuple>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_defaults</string> </key>
-            <value>
-              <tuple>
-                <list/>
-                <list/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <string></string>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>ItemModule_createRelatedAffectationValidate</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/Item_createRelatedAffectationFormDialog.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationFormDialog.xml?rev=27063&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationFormDialog.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationFormDialog.xml (removed)
@@ -1,160 +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>Item_createRelatedAffectationValidate</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></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/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>center</string> </key>
-                    <value>
-                      <list/>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>hidden</string> </key>
-                    <value>
-                      <list>
-                        <string>my_reference</string>
-                        <string>my_resource</string>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>left</string> </key>
-                    <value>
-                      <list>
-                        <string>your_title</string>
-                        <string>your_start_date</string>
-                        <string>your_stop_date</string>
-                      </list>
-                    </value>
-                </item>
-                <item>
-                    <key> <string>right</string> </key>
-                    <value>
-                      <list>
-                        <string>my_quantity</string>
-                        <string>my_quantity_unit</string>
-                        <string>your_portal_type</string>
-                      </list>
-                    </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Item_createRelatedAffectationFormDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>method</string> </key>
-            <value> <string>POST</string> </value>
-        </item>
-        <item>
-            <key> <string>name</string> </key>
-            <value> <string>Item_createAffectationFormDialog</string> </value>
-        </item>
-        <item>
-            <key> <string>pt</string> </key>
-            <value> <string>form_view_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>Create Related Affectation</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>Item_createRelatedAffectationFormDialog</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>

Removed: erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationValidate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationValidate.xml?rev=27063&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationValidate.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_createRelatedAffectationValidate.xml (removed)
@@ -1,214 +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># Check data validity\n
-source = context.Item_getCurrentSiteValue()\n
-source_section = context.Item_getCurrentOwnerTitle(with_title=0)\n
-\n
-property_dict = {\'title\':title,                 \n
-                 \'stop_date\' : stop_date,\n
-                 \'start_date\' : start_date,\n
-                 \'portal_type\' : portal_type, }\n
-\n
-module = context.getDefaultModule(portal_type=portal_type)\n
-line_portal_type = \'%s Line\' % portal_type\n
-cell_portal_type = \'%s Cell\' % portal_type\n
-\n
-pl_dict = {}\n
-for k,v in property_dict.items():\n
-  pl_dict[k]=v\n
-\n
-pl_line_dict = {}\n
-pl_line_dict[\'portal_type\'] = line_portal_type\n
-\n
-pl_line_dict[\'title\']= \'%s\' % (context.getReference())\n
-#pl_line_dict[\'aggregate_value_list\'] = [context]\n
-pl_line_dict[\'quantity\'] = quantity\n
-pl_line_dict[\'quantity_unit\'] = quantity_unit\n
-pl_value = module.newContent(**pl_dict)\n
-\n
-pl_line_value = pl_value.newContent(**pl_line_dict)\n
-pl_line_value.setResourceValue(context.Item_getResourceValue())\n
-context.log(context.Item_getVariationOnMovement())\n
-if context.Item_getVariationOnMovement()==[]:\n
-  pl_line_value.setAggregateValue(context)\n
-else:\n
-  pl_line_value.setVariationCategoryList(context.Item_getVariationOnMovement(current=1))\n
-  base_id = \'movement\'\n
-  cell_key_list = list(pl_line_value.getCellKeyList(base_id=base_id))\n
-  context.log(cell_key_list)\n
-  cell_key_list.sort()\n
-  for cell_key in cell_key_list: \n
-    cell = pl_line_value.newCell(base_id=base_id, \\\n
-                                portal_type=cell_portal_type,*cell_key)\n
-    cell.edit(mapped_value_property_list=[\'price\',\'quantity\'],\n
-                price=context.getPrice(), quantity=context.getQuantity(),\n
-                predicate_category_list=cell_key,\n
-                variation_category_list=cell_key)\n
-    cell.setAggregateValue(context)\n
-form_id = \'/\'.join(pl_value.getPhysicalPath())\n
-return context.Base_redirect(form_id, keep_items=dict(\n
-       portal_status_message=translateString(\'Item affected\')))\n
-</string> </value>
-        </item>
-        <item>
-            <key> <string>_code</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_params</string> </key>
-            <value> <string>destination=None,destination_section=None,portal_type=None,site_suggestion=None,start_date=None,quantity=None,start_date=None,stop_date=None,title=\'\',quantity_unit=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>10</int> </value>
-                    </item>
-                    <item>
-                        <key> <string>co_varnames</string> </key>
-                        <value>
-                          <tuple>
-                            <string>destination</string>
-                            <string>destination_section</string>
-                            <string>portal_type</string>
-                            <string>site_suggestion</string>
-                            <string>start_date</string>
-                            <string>quantity</string>
-                            <string>start_date</string>
-                            <string>stop_date</string>
-                            <string>title</string>
-                            <string>quantity_unit</string>
-                            <string>kw</string>
-                            <string>_getattr_</string>
-                            <string>context</string>
-                            <string>source</string>
-                            <string>source_section</string>
-                            <string>property_dict</string>
-                            <string>module</string>
-                            <string>line_portal_type</string>
-                            <string>cell_portal_type</string>
-                            <string>pl_dict</string>
-                            <string>_getiter_</string>
-                            <string>k</string>
-                            <string>v</string>
-                            <string>_write_</string>
-                            <string>pl_line_dict</string>
-                            <string>_apply_</string>
-                            <string>pl_value</string>
-                            <string>pl_line_value</string>
-                            <string>base_id</string>
-                            <string>list</string>
-                            <string>cell_key_list</string>
-                            <string>cell_key</string>
-                            <string>cell</string>
-                            <string>form_id</string>
-                            <string>dict</string>
-                            <string>translateString</string>
-                          </tuple>
-                        </value>
-                    </item>
-                  </dictionary>
-                </state>
-              </object>
-            </value>
-        </item>
-        <item>
-            <key> <string>func_defaults</string> </key>
-            <value>
-              <tuple>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <none/>
-                <string></string>
-                <none/>
-              </tuple>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Item_createRelatedAffectationValidate</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/Item_view/my_serial_number.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_view/my_serial_number.xml?rev=27063&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_view/my_serial_number.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Item_view/my_serial_number.xml (removed)
@@ -1,104 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>delegated_list</string> </key>
-            <value>
-              <list>
-                <string>title</string>
-                <string>editable</string>
-              </list>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>my_serial_number</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>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>overrides</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>tales</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string></string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string></string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-        <item>
-            <key> <string>values</string> </key>
-            <value>
-              <dictionary>
-                <item>
-                    <key> <string>editable</string> </key>
-                    <value> <int>1</int> </value>
-                </item>
-                <item>
-                    <key> <string>field_id</string> </key>
-                    <value> <string>my_string_field</string> </value>
-                </item>
-                <item>
-                    <key> <string>form_id</string> </key>
-                    <value> <string>Base_viewFieldLibrary</string> </value>
-                </item>
-                <item>
-                    <key> <string>target</string> </key>
-                    <value> <string>Click to edit the target</string> </value>
-                </item>
-                <item>
-                    <key> <string>title</string> </key>
-                    <value> <string>Serial Number</string> </value>
-                </item>
-              </dictionary>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>




More information about the Erp5-report mailing list