[Erp5-report] r23922 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/porta...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 1 09:57:17 CEST 2008
Author: aurel
Date: Wed Oct 1 09:57:09 2008
New Revision: 23922
URL: http://svn.erp5.org?rev=23922&view=rev
Log:
Configure the listbox of alarms to use the catalog to retrieve active processes
Removed:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getOrderedActiveProcessList.xml
Removed: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getOrderedActiveProcessList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getOrderedActiveProcessList.xml?rev=23921&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getOrderedActiveProcessList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getOrderedActiveProcessList.xml (removed)
@@ -1,154 +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
- Returns active processes related to an Alarm \n
- ordered by data. sense_value is calculated\n
- using the Alarm itself.\n
-\n
- TODO: optimisation of list method to compute values\n
- only on the currently displayed range\n
- TODO2: optimisation of sense_value through cache\n
-"""\n
-\n
-def sort_date(a,b):\n
- return - cmp(a.getStartDate(), b.getStartDate())\n
-\n
-process_list = context.getCausalityRelatedValueList()\n
-process_list.sort(sort_date)\n
-return_list = []\n
-for process in process_list:\n
- process_id = process.getId()\n
- start_date = process.getStartDate()\n
- sense_value = context.sense(process=process)\n
- return_list.append(context.asContext(process_id=process.getId(), \n
- start_date=process.getStartDate(),\n
- sense_value=sense_value))\n
-return return_list\n
-</string> </value>
- </item>
- <item>
- <key> <string>_code</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>**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>kw</string>
- <string>sort_date</string>
- <string>_getattr_</string>
- <string>context</string>
- <string>process_list</string>
- <string>return_list</string>
- <string>_getiter_</string>
- <string>process</string>
- <string>process_id</string>
- <string>start_date</string>
- <string>sense_value</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>Alarm_getOrderedActiveProcessList</string> </value>
- </item>
- <item>
- <key> <string>warnings</string> </key>
- <value>
- <tuple/>
- </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list