[Erp5-report] r23921 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 1 09:56:54 CEST 2008
Author: aurel
Date: Wed Oct 1 09:56:43 2008
New Revision: 23921
URL: http://svn.erp5.org?rev=23921&view=rev
Log:
Configure the listbox of alarms to use the catalog to retrieve active processes
Added:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ActiveProcess_sense.xml
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getReportURL.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_view/listbox.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Added: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ActiveProcess_sense.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ActiveProcess_sense.xml?rev=23921&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ActiveProcess_sense.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ActiveProcess_sense.xml Wed Oct 1 09:56:43 2008
@@ -1,0 +1,139 @@
+<?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 encoding="cdata"><![CDATA[
+
+for result in context.getResultList():\n
+ # This is useful is result is returned as a Return instance\n
+ if result.severity > result.INFO:\n
+ return True\n
+ # This is the default case\n
+ if getattr(result, \'result\', False):\n
+ return True\n
+return False\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>_getiter_</string>
+ <string>_getattr_</string>
+ <string>context</string>
+ <string>result</string>
+ <string>True</string>
+ <string>getattr</string>
+ <string>False</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>ActiveProcess_sense</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getReportURL.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getReportURL.xml?rev=23921&r1=23920&r2=23921&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getReportURL.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_getReportURL.xml Wed Oct 1 09:56:43 2008
@@ -61,7 +61,7 @@
\n
url = context.absolute_url()\n
method = context.getReportMethodId(\'Alarm_viewReport\')\n
-kw = { \'active_process\' : \'portal_activities/%s\' % object.process_id,\n
+kw = { \'active_process\' : \'portal_activities/%s\' % object.id,\n
\'reset\' : \'1\', \n
}\n
\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_view/listbox.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_view/listbox.xml?rev=23921&r1=23920&r2=23921&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_view/listbox.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Alarm_view/listbox.xml Wed Oct 1 09:56:43 2008
@@ -180,10 +180,18 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>anchor</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>columns</string> </key>
<value> <string></string> </value>
</item>
<item>
+ <key> <string>count_method</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
@@ -193,7 +201,9 @@
</item>
<item>
<key> <string>default_params</string> </key>
- <value> <string></string> </value>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
</item>
<item>
<key> <string>description</string> </key>
@@ -248,6 +258,10 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>page_template</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
@@ -293,6 +307,10 @@
</item>
<item>
<key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>untranslatable_columns</string> </key>
<value> <string></string> </value>
</item>
<item>
@@ -328,11 +346,15 @@
<value> <string></string> </value>
</item>
<item>
+ <key> <string>anchor</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
<key> <string>columns</string> </key>
<value>
<list>
<tuple>
- <string>process_id</string>
+ <string>id</string>
<string>ID</string>
</tuple>
<tuple>
@@ -340,7 +362,7 @@
<string>Date</string>
</tuple>
<tuple>
- <string>sense_value</string>
+ <string>ActiveProcess_sense</string>
<string>Problem Detected</string>
</tuple>
</list>
@@ -385,12 +407,7 @@
<item>
<key> <string>editable_columns</string> </key>
<value>
- <list>
- <tuple>
- <string>id</string>
- <string>Id</string>
- </tuple>
- </list>
+ <list/>
</value>
</item>
<item>
@@ -422,7 +439,7 @@
<item>
<key> <string>list_method</string> </key>
<value>
- <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
@@ -438,7 +455,12 @@
<item>
<key> <string>portal_types</string> </key>
<value>
- <list/>
+ <list>
+ <tuple>
+ <string>Active Process</string>
+ <string>Active Process</string>
+ </tuple>
+ </list>
</value>
</item>
<item>
@@ -472,7 +494,12 @@
<item>
<key> <string>sort</string> </key>
<value>
- <list/>
+ <list>
+ <tuple>
+ <string>creation_date</string>
+ <string>DESC</string>
+ </tuple>
+ </list>
</value>
</item>
<item>
@@ -496,11 +523,17 @@
<value> <string>Active Processes</string> </value>
</item>
<item>
+ <key> <string>untranslatable_columns</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
<key> <string>url_columns</string> </key>
<value>
<list>
<tuple>
- <string>process_id</string>
+ <string>id</string>
<string>Alarm_getReportURL</string>
</tuple>
<tuple>
@@ -508,7 +541,7 @@
<string>Alarm_getReportURL</string>
</tuple>
<tuple>
- <string>sense_value</string>
+ <string>ActiveProcess_sense</string>
<string>Alarm_getReportURL</string>
</tuple>
</list>
@@ -521,6 +554,22 @@
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_text</string> </key>
+ <value> <string>python: [(\'causality_uid\',here.getUid()),]</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
@@ -531,7 +580,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
- <value> <string>Alarm_getOrderedActiveProcessList</string> </value>
+ <value> <string>portal_catalog</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=23921&r1=23920&r2=23921&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Wed Oct 1 09:56:43 2008
@@ -1,1 +1,1 @@
-971
+973
More information about the Erp5-report
mailing list