[Erp5-report] r32569 kazuhiko - in /erp5/trunk/bt5/erp5_project: SkinTemplateItem/portal_sk...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 16 03:43:40 CET 2010
Author: kazuhiko
Date: Tue Feb 16 03:43:39 2010
New Revision: 32569
URL: http://svn.erp5.org?rev=32569&view=rev
Log:
modify builder's select methods to support both new and old simulation hierarchy.
Modified:
erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_selectMovement.xml
erp5/trunk/bt5/erp5_project/bt/revision
Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_selectMovement.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_selectMovement.xml?rev=32569&r1=32568&r2=32569&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_selectMovement.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Task_selectMovement.xml [utf8] Tue Feb 16 03:43:39 2010
@@ -53,10 +53,17 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>kw[\'parent_specialise_portal_type\'] = [\'Order Rule\', \'Delivery Rule\']\n
-kw[\'explanation_portal_type\'] = \'Task\'\n
-kw[\'portal_type\'] = \'Simulation Movement\'\n
-kw[\'simulation_state\'] = \'confirmed\'\n
+ <value> <string>from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
+\n
+kw[\'query\'] = ComplexQuery(\n
+ Query(portal_type=\'Simulation Movement\', explanation_portal_type=\'Task\'),\n
+ ComplexQuery(\n
+ Query(parent_specialise_portal_type=[\'Order Rule\', \'Delivery Rule\'],\n
+ simulation_state=\'confirmed\'),\n
+ Query(parent_specialise_portal_type=\'Delivering Simulation Rule\',\n
+ grand_parent_simulation_state=\'confirmed\'),\n
+ operator=\'or\'),\n
+ operator=\'and\')\n
\n
kw.update(context.portal_catalog.buildSQLQuery(**kw))\n
\n
@@ -111,6 +118,9 @@
<tuple>
<string>src__</string>
<string>kw</string>
+ <string>Products.ZSQLCatalog.SQLCatalog</string>
+ <string>Query</string>
+ <string>ComplexQuery</string>
<string>_write_</string>
<string>_getattr_</string>
<string>_apply_</string>
@@ -141,6 +151,10 @@
<value> <string>Task_selectMovement</string> </value>
</item>
<item>
+ <key> <string>title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=32569&r1=32568&r2=32569&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision [utf8] Tue Feb 16 03:43:39 2010
@@ -1,1 +1,1 @@
-729
+730
More information about the Erp5-report
mailing list