source: products/qPloneGoogleSitemaps/trunk/browser/sitemapview.py @ 458

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

qPloneResolveUID import

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