source: products/qPloneGoogleSitemaps/branches/contenttype/browser/sitemapview.py

Last change on this file was 402, checked in by crchemist, 14 years ago

All tests passed.

  • 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.