[Erp5-report] r11725 - in /erp5/trunk/products: ERP5/bootstrap/erp5_core/CatalogMethodTempl...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 14 14:48:09 CET 2006
Author: jerome
Date: Thu Dec 14 14:48:05 2006
New Revision: 11725
URL: http://svn.erp5.org?rev=11725&view=rev
Log:
fix parent related key, and add a test this time
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_related_parent.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_related_parent.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_related_parent.xml?rev=11725&r1=11724&r2=11725&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_related_parent.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql/z_related_parent.xml Thu Dec 14 14:48:05 2006
@@ -78,7 +78,7 @@
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
-<dtml-var table_0>.parent_uid = <dtml_var query_table>.uid\n
+<dtml-var table_0>.uid = <dtml-var query_table>.parent_uid\n
]]></string> </value>
@@ -117,7 +117,7 @@
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
-<dtml-var table_0>.parent_uid = <dtml_var query_table>.uid\n
+<dtml-var table_0>.uid = <dtml-var query_table>.parent_uid\n
]]></string> </value>
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=11725&r1=11724&r2=11725&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Dec 14 14:48:05 2006
@@ -1,1 +1,1 @@
-217
+218
Modified: erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py?rev=11725&r1=11724&r2=11725&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py (original)
+++ erp5/trunk/products/ERP5Catalog/tests/testERP5Catalog.py Thu Dec 14 14:48:05 2006
@@ -1241,4 +1241,19 @@
path_list = [new_person.getRelativeUrl()]
self.checkRelativeUrlInSqlPathList(path_list)
-
+ def test_44_ParentRelatedKeys(self, quiet=quiet, run=run_all_test):
+ if not run: return
+ if not quiet:
+ message = 'Parent related keys'
+ ZopeTestCase._print('\n%s ' % message)
+ LOG('Testing... ',0,message)
+ portal_catalog = self.getCatalogTool()
+ person_module = self.getPersonModule()
+ person_module.reindexObject()
+ person = person_module.newContent(id='1',portal_type='Person')
+ get_transaction().commit()
+ self.tic()
+ self.assertEquals([person],
+ [x.getObject() for x in self.getCatalogTool()(
+ parent_title=person_module.getTitle())])
+
More information about the Erp5-report
mailing list