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

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

trying to modify structure

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