Ignore:
Timestamp:
Aug 11, 2010 6:33:43 PM (14 years ago)
Author:
mylan
Message:

#226: Force sitemap search content related to the place, where it added to

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/browser/commonview.py

    r2169 r2742  
    22from zope.interface import implements, Interface, Attribute 
    33 
     4from Acquisition import aq_inner, aq_parent 
    45from Products.Five import BrowserView 
    56from Products.CMFCore.utils import getToolByName 
    67 
    78from quintagroup.plonegooglesitemaps import qPloneGoogleSitemapsMessageFactory as _ 
    8 from utils import additionalURLs, applyOperations 
     9from quintagroup.plonegooglesitemaps.browser.utils import additionalURLs, applyOperations 
    910 
    1011 
     
    5354        return getToolByName(self.context, 'portal_url').getPortalObject() 
    5455 
     56    @property 
     57    def search_path(self): 
     58        return '/'.join(aq_parent(aq_inner(self.context)).getPhysicalPath()) 
     59 
    5560    def getFilteredObjects(self): 
    5661        """ Return brains 
Note: See TracChangeset for help on using the changeset viewer.