source: products/qPloneGoogleSitemaps/tags/0.8.2/browser/sitemapview.py

Last change on this file was 458, checked in by fenix, 13 years ago

qPloneResolveUID import

  • Property svn:eol-style set to native
File size: 594 bytes
Line 
1from DateTime import DateTime
2from 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        path = self.portal.getPhysicalPath()
17        portal_types = self.context.getPortalTypes()
18        review_states = self.context.getStates()
19        return self.portal_catalog(path = path,
20                portal_type = portal_types,
21                review_state = review_states)
Note: See TracBrowser for help on using the repository browser.