Commit 67726983 authored by Jérome Perrin's avatar Jérome Perrin

fix parent related key, and add a test this time


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11725 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b6ff05e
...@@ -78,7 +78,7 @@ query_table</string> </value> ...@@ -78,7 +78,7 @@ query_table</string> </value>
<key> <string>src</string> </key> <key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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> ]]></string> </value>
...@@ -117,7 +117,7 @@ query_table</string> </value> ...@@ -117,7 +117,7 @@ query_table</string> </value>
<key> <string>raw</string> </key> <key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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> ]]></string> </value>
......
217 218
\ No newline at end of file \ No newline at end of file
...@@ -1241,4 +1241,19 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): ...@@ -1241,4 +1241,19 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
path_list = [new_person.getRelativeUrl()] path_list = [new_person.getRelativeUrl()]
self.checkRelativeUrlInSqlPathList(path_list) 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())])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment