[Erp5-report] r45440 aurel - /erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skin...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 14 15:43:06 CEST 2011
Author: aurel
Date: Thu Apr 14 15:43:06 2011
New Revision: 45440
URL: http://svn.erp5.org?rev=45440&view=rev
Log:
Remove useless scripts
Removed:
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_isListboxValide.xml
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_search_lineByResource.xml
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryLine_zGetTotal.xml
erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/InventoryModule_reindexMovementList.xml
Removed: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_isListboxValide.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_isListboxValide.xml?rev=45439&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_isListboxValide.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_isListboxValide.xml (removed)
@@ -1,99 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- </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 encoding="cdata"><![CDATA[
-
-# 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
-# List of elements on the input listbox\n
-for listbox_line in listbox :\n
- resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resourceId\'])\n
- if resource_list[0].getObject().getPriceCurrency() <> \'currency/\'+operationCurrency:\n
- return 0\n
- resourceVariation_list = resource_list[0].getObject().getVariationIdList()\n
- counter = 1\n
- if columnBase == \'variation\':\n
- for y in catalog_variation_list:\n
- if int(listbox_line[\'column\'+str(counter)] or 0) <> 0 : \n
- if y[1] not in resourceVariation_list :\n
- return 0 \n
- counter += 1 \n
- else:\n
- if len(variation_list)> 1:\n
- currentVariation = listbox_line[\'variation\']\n
- else:\n
- currentVariation = variation_list[0]\n
- counter = 0\n
- for y in range(numberOfColumn):\n
- counter += 1 \n
- if int(listbox_line[\'column\'+str(counter)] or 0) <> 0 : \n
- if currentVariation not in resourceVariation_list :\n
- return 0 \n
-\n
-return 1\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>listbox=None, columnBase, variation_list, numberOfColumn ,operationCurrency, **kw</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>CashDetail_isListboxValide</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_search_lineByResource.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_search_lineByResource.xml?rev=45439&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_search_lineByResource.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_search_lineByResource.xml (removed)
@@ -1,78 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- </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>#sourceline_list = context.searchFolder(portal_type="Container Line")\n
-sourceline_list = context.searchFolder(portal_type=portal_type_name)\n
-\n
-\n
-if len(sourceline_list) == 0 :\n
- return None\n
-\n
-sourceline_list = [x.getObject() for x in sourceline_list if x.getObject().getResourceId() == resourceId]\n
-if len(sourceline_list) == 0 :\n
- return None\n
-else:\n
- return sourceline_list[0]\n
-</string> </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>resourceId=None, portal_type_name</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>CashDetail_search_lineByResource</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryLine_zGetTotal.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryLine_zGetTotal.xml?rev=45439&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryLine_zGetTotal.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/DeliveryLine_zGetTotal.xml (removed)
@@ -1,142 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="SQL" module="Products.ZSQLMethods.SQL"/>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>_col</string> </key>
- <value>
- <list>
- <dictionary>
- <item>
- <key> <string>name</string> </key>
- <value> <string>total_quantity</string> </value>
- </item>
- <item>
- <key> <string>null</string> </key>
- <value> <int>1</int> </value>
- </item>
- <item>
- <key> <string>type</string> </key>
- <value> <string>n</string> </value>
- </item>
- <item>
- <key> <string>width</string> </key>
- <value> <int>0</int> </value>
- </item>
- </dictionary>
- <dictionary>
- <item>
- <key> <string>name</string> </key>
- <value> <string>total_price</string> </value>
- </item>
- <item>
- <key> <string>null</string> </key>
- <value> <int>1</int> </value>
- </item>
- <item>
- <key> <string>type</string> </key>
- <value> <string>n</string> </value>
- </item>
- <item>
- <key> <string>width</string> </key>
- <value> <int>6</int> </value>
- </item>
- </dictionary>
- <dictionary>
- <item>
- <key> <string>name</string> </key>
- <value> <string>target_total_quantity</string> </value>
- </item>
- <item>
- <key> <string>null</string> </key>
- <value> <int>1</int> </value>
- </item>
- <item>
- <key> <string>type</string> </key>
- <value> <string>n</string> </value>
- </item>
- <item>
- <key> <string>width</string> </key>
- <value> <int>0</int> </value>
- </item>
- </dictionary>
- <dictionary>
- <item>
- <key> <string>name</string> </key>
- <value> <string>target_total_price</string> </value>
- </item>
- <item>
- <key> <string>null</string> </key>
- <value> <int>1</int> </value>
- </item>
- <item>
- <key> <string>type</string> </key>
- <value> <string>n</string> </value>
- </item>
- <item>
- <key> <string>width</string> </key>
- <value> <int>0</int> </value>
- </item>
- </dictionary>
- <dictionary>
- <item>
- <key> <string>name</string> </key>
- <value> <string>average_price</string> </value>
- </item>
- <item>
- <key> <string>null</string> </key>
- <value> <int>1</int> </value>
- </item>
- <item>
- <key> <string>type</string> </key>
- <value> <string>n</string> </value>
- </item>
- <item>
- <key> <string>width</string> </key>
- <value> <int>5</int> </value>
- </item>
- </dictionary>
- </list>
- </value>
- </item>
- <item>
- <key> <string>arguments_src</string> </key>
- <value> <string>uid</string> </value>
- </item>
- <item>
- <key> <string>connection_id</string> </key>
- <value> <string>erp5_sql_connection</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>DeliveryLine_zGetTotal</string> </value>
- </item>
- <item>
- <key> <string>src</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-SELECT \n
-\tSUM(quantity) AS total_quantity, \n
-\tSUM(quantity * price) AS total_price, \n
-\tAVG(price) AS average_price\n
-FROM catalog, movement\n
-WHERE \n
-\tcatalog.parent_uid = <dtml-sqlvar uid type="int">\n
-AND\t\n
-\tcatalog.uid = movement.uid\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/InventoryModule_reindexMovementList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/InventoryModule_reindexMovementList.xml?rev=45439&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/InventoryModule_reindexMovementList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/InventoryModule_reindexMovementList.xml (removed)
@@ -1,95 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- </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># Inventory requires reindexing when older movements become available, because\n
-# inventory generates deltas against the past stock, using a catalog. It is only\n
-# necessary to reindex Inventory documents instead of Inventory movements, because\n
-# Inventory reindexes its movements in a special way to the stock table by itself.\n
-#\n
-# FIXME: I think it would be better to replace this script with a good interactor\n
-# which reindexes future inventory documents.\n
-\n
-previous_tag = None\n
-portal = context.getPortalObject()\n
-\n
-# We have to reindex all inventory documents in the order of the dates.\n
-# Uids are used to make the ordering consistent, even when multiple documents have\n
-# the same date.\n
-for inventory in portal.portal_catalog(portal_type=portal.getPortalInventoryTypeList(),\n
- limit=None,\n
- sort_on=[(\'catalog.start_date\', \'ascending\'), (\'uid\', \'ascending\')],\n
- sql_catalog_id=sql_catalog_id):\n
- inventory = inventory.getObject()\n
- tag = \'inventory_%i\' % inventory.getUid()\n
- activate_kw = dict(tag=tag, passive_commit=passive_commit)\n
- if previous_tag is not None:\n
- activate_kw[\'after_tag\'] = previous_tag\n
- previous_tag = tag\n
- inventory.reindexObject(activate_kw=activate_kw, sql_catalog_id=sql_catalog_id)\n
-\n
-if final_activity_tag is not None and previous_tag is not None:\n
- # Dummy activity used to determine if the previously started activities are over.\n
- context.activate(tag=final_activity_tag, after_tag=previous_tag).getId()\n
-</string> </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>sql_catalog_id=None, passive_commit=1, final_activity_tag=None, **kw</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>InventoryModule_reindexMovementList</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list