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

Last change on this file since 397 was 396, checked in by piv, 18 years ago

added map widget, ...

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