source: products/quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/browser/sitemapview.py @ 3163

Last change on this file since 3163 was 3163, checked in by zidane, 9 years ago

fixes pyflakes and pylint

  • Property svn:eol-style set to native
File size: 588 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 = (
13        ('modification_date', lambda x: DateTime(x.ModificationDate).HTML4()),
14    )
15
16    def getFilteredObjects(self):
17        return self.portal_catalog(
18            path=self.search_path,
19            portal_type=self.context.getPortalTypes(),
20            review_state=self.context.getStates()
21            )
Note: See TracBrowser for help on using the repository browser.