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

Last change on this file since 3152 was 3152, checked in by zidane, 13 years ago

fixes pep8

  • Property svn:eol-style set to native
File size: 540 bytes
Line 
1from DateTime import DateTime
2from quintagroup.plonegooglesitemaps.browser.commonview import *
3
4
5class SitemapView(CommonSitemapView):
6    """
7    Sitemap browser view
8    """
9    implements(ISitemapView)
10
11    additional_maps = (
12        ('modification_date', lambda x: DateTime(x.ModificationDate).HTML4()),
13    )
14
15    def getFilteredObjects(self):
16        return self.portal_catalog(
17            path=self.search_path,
18            portal_type=self.context.getPortalTypes(),
19            review_state=self.context.getStates()
20            )
Note: See TracBrowser for help on using the repository browser.