source: products/quintagroup.plonegooglesitemaps/branches/two_request/sitemapview.py

Last change on this file was 3479, checked in by potar, 12 years ago

trying to modify structure

  • Property svn:eol-style set to native
File size: 563 bytes
Line 
1from DateTime import DateTime
2from quintagroup.plonegooglesitemaps.browser.commonview \
3    import CommonSitemapView, implements, ISitemapView
4
5
6class SitemapView(CommonSitemapView):
7    """
8    Sitemap browser view
9    """
10    implements(ISitemapView)
11
12    additional_maps = {'modification_date': lambda x: DateTime(x.ModificationDate)}
13
14    def getFilteredObjects(self):
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 TracBrowser for help on using the repository browser.