r13679 - Products.Archetypes/trunk/Products/Archetypes
"Tom Gross" <[email protected]> Tue, 14 Jun 2011 14:24:42 +0000
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tom_gross
Date: Tue Jun 14 14:24:41 2011
New Revision: 13679
Modified:
Products.Archetypes/trunk/Products/Archetypes/CatalogMultiplex.py
Log:
reuse method
Modified: Products.Archetypes/trunk/Products/Archetypes/CatalogMultiplex.py
==============================================================================
--- Products.Archetypes/trunk/Products/Archetypes/CatalogMultiplex.py (original)
+++ Products.Archetypes/trunk/Products/Archetypes/CatalogMultiplex.py Tue Jun 14 14:24:41 2011
@@ -16,7 +16,7 @@
security = ClassSecurityInfo()
def __url(self):
- return '/'.join( self.getPhysicalPath() )
+ return '/'.join(self.getPhysicalPath())
def getCatalogs(self):
at = getToolByName(self, TOOL_NAME, None)
@@ -59,7 +59,7 @@
catalogs = [c for c in at.getCatalogsByType(self.meta_type)
if ICatalogTool.providedBy(c)]
- path = '/'.join(self.getPhysicalPath())
+ path = self.__url()
for catalog in catalogs:
for brain in catalog.unrestrictedSearchResults(path=path):
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev