Last change
on this file since 3416 was
3163,
checked in by zidane, 13 years ago
|
fixes pyflakes and pylint
|
-
Property svn:eol-style set to
native
|
File size:
722 bytes
|
Rev | Line | |
---|
[1593] | 1 | from DateTime import DateTime |
---|
[3163] | 2 | from quintagroup.plonegooglesitemaps.browser.commonview \ |
---|
| 3 | import CommonSitemapView, implements, ISitemapView |
---|
[1593] | 4 | |
---|
[3152] | 5 | MOBILE_INTERFACES = ['quintagroup.mobileextender.interfaces.IMobile', ] |
---|
[1593] | 6 | |
---|
[3152] | 7 | |
---|
[1593] | 8 | class MobileSitemapView(CommonSitemapView): |
---|
| 9 | """ |
---|
| 10 | Mobile Sitemap browser view |
---|
| 11 | """ |
---|
| 12 | implements(ISitemapView) |
---|
| 13 | |
---|
| 14 | additional_maps = ( |
---|
[3152] | 15 | ('modification_date', lambda x: DateTime(x.ModificationDate).HTML4()), |
---|
[1593] | 16 | ) |
---|
| 17 | |
---|
| 18 | def getFilteredObjects(self): |
---|
[2742] | 19 | return self.portal_catalog( |
---|
[3152] | 20 | path=self.search_path, |
---|
| 21 | portal_type=self.context.getPortalTypes(), |
---|
| 22 | review_state=self.context.getStates(), |
---|
| 23 | object_provides=MOBILE_INTERFACES, |
---|
[2742] | 24 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.