Last change
on this file since 2841 was
2742,
checked in by mylan, 14 years ago
|
#226: Force sitemap search content related to the place, where it added to
|
-
Property svn:eol-style set to
native
|
File size:
679 bytes
|
Line | |
---|
1 | from DateTime import DateTime |
---|
2 | from quintagroup.plonegooglesitemaps.browser.commonview import * |
---|
3 | |
---|
4 | MOBILE_INTERFACES = ['quintagroup.mobileextender.interfaces.IMobile',] |
---|
5 | |
---|
6 | class MobileSitemapView(CommonSitemapView): |
---|
7 | """ |
---|
8 | Mobile Sitemap browser view |
---|
9 | """ |
---|
10 | implements(ISitemapView) |
---|
11 | |
---|
12 | additional_maps = ( |
---|
13 | ('modification_date', lambda x:DateTime(x.ModificationDate).HTML4()), |
---|
14 | ) |
---|
15 | |
---|
16 | def getFilteredObjects(self): |
---|
17 | return self.portal_catalog( |
---|
18 | path = self.search_path, |
---|
19 | portal_type = self.context.getPortalTypes(), |
---|
20 | review_state = self.context.getStates(), |
---|
21 | object_provides = MOBILE_INTERFACES, |
---|
22 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.