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

    r1593 r2742  
    11from DateTime import DateTime 
    2 from commonview import * 
     2from quintagroup.plonegooglesitemaps.browser.commonview import * 
    33 
    44MOBILE_INTERFACES = ['quintagroup.mobileextender.interfaces.IMobile',] 
     
    1515 
    1616    def getFilteredObjects(self): 
    17         path = self.portal.getPhysicalPath() 
    18         portal_types = self.context.getPortalTypes() 
    19         review_states = self.context.getStates() 
    20         return self.portal_catalog(path = path, 
    21                 portal_type = portal_types, 
    22                 review_state = review_states,  
    23                 object_provides = MOBILE_INTERFACES, 
    24                 ) 
     17        return self.portal_catalog( 
     18            path = self.search_path, 
     19            portal_type = self.context.getPortalTypes(), 
     20            review_state = self.context.getStates(), 
     21            object_provides = MOBILE_INTERFACES, 
     22            ) 
Note: See TracChangeset for help on using the changeset viewer.