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

    r2420 r2742  
    11import re 
    22from DateTime import DateTime 
    3 from commonview import * 
    43from zope.component import getMultiAdapter 
    54from plone.memoize.view import memoize 
     5from quintagroup.plonegooglesitemaps.browser.commonview import * 
    66 
    77reTrailingParenthtical = re.compile("\s*\(.*\)\s*", re.S) 
     
    3232 
    3333    def getFilteredObjects(self): 
    34         path = self.portal.getPhysicalPath() 
    35         portal_types = self.context.getPortalTypes() 
    36         review_states = self.context.getStates() 
    3734        min_date = DateTime() - 3 
    38         res = self.portal_catalog(path = path, 
    39                 portal_type = portal_types, 
    40                 review_state = review_states, 
    41                 effective = {"query": min_date, 
    42                              "range": "min" }) 
    43         return res 
     35        return self.portal_catalog( 
     36            path = self.search_path, 
     37            portal_type = self.context.getPortalTypes(), 
     38            review_state = self.context.getStates(), 
     39            effective = {"query": min_date, 
     40                         "range": "min" } 
     41            ) 
Note: See TracChangeset for help on using the changeset viewer.