source: products/quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/browser/mobilesitemapview.py @ 3152

Last change on this file since 3152 was 3152, checked in by zidane, 9 years ago

fixes pep8

  • Property svn:eol-style set to native
File size: 674 bytes
Line 
1from DateTime import DateTime
2from quintagroup.plonegooglesitemaps.browser.commonview import *
3
4MOBILE_INTERFACES = ['quintagroup.mobileextender.interfaces.IMobile', ]
5
6
7class MobileSitemapView(CommonSitemapView):
8    """
9    Mobile Sitemap browser view
10    """
11    implements(ISitemapView)
12
13    additional_maps = (
14        ('modification_date', lambda x: DateTime(x.ModificationDate).HTML4()),
15    )
16
17    def getFilteredObjects(self):
18        return self.portal_catalog(
19            path=self.search_path,
20            portal_type=self.context.getPortalTypes(),
21            review_state=self.context.getStates(),
22            object_provides=MOBILE_INTERFACES,
23            )
Note: See TracBrowser for help on using the repository browser.