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/sitemapview.py

    r1593 r2742  
    11from DateTime import DateTime 
    2 from commonview import * 
    3  
     2from quintagroup.plonegooglesitemaps.browser.commonview import * 
    43 
    54class SitemapView(CommonSitemapView): 
     
    1413 
    1514    def getFilteredObjects(self): 
    16         path = self.portal.getPhysicalPath() 
    17         portal_types = self.context.getPortalTypes() 
    18         review_states = self.context.getStates() 
    19         return self.portal_catalog(path = path, 
    20                 portal_type = portal_types, 
    21                 review_state = review_states) 
     15        return self.portal_catalog( 
     16            path = self.search_path, 
     17            portal_type = self.context.getPortalTypes(), 
     18            review_state = self.context.getStates() 
     19            ) 
Note: See TracChangeset for help on using the changeset viewer.