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

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

fixes pep8

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