Commit 388baa71 authored by Vincent Pelletier's avatar Vincent Pelletier

testERP5Web: Actually search by reference.

parent 79a5024d
......@@ -269,7 +269,7 @@ Hé Hé Hé!""", page.asText().strip())
webpage_list = self.setupWebSitePages(prefix=page_reference)
# set default web page for section
found_by_reference = portal.portal_catalog(name=page_reference,
found_by_reference = portal.portal_catalog(reference=page_reference,
portal_type='Web Page')
found = found_by_reference[0].getObject()
websection.edit(categories_list=['aggregate/%s' % found.getRelativeUrl()])
......
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