Last change
on this file since 598 was
458,
checked in by fenix, 18 years ago
|
qPloneResolveUID import
|
-
Property svn:eol-style set to
native
|
File size:
648 bytes
|
Line | |
---|
1 | from DateTime import DateTime |
---|
2 | from commonview import * |
---|
3 | |
---|
4 | class MobileSitemapView(CommonSitemapView): |
---|
5 | """ |
---|
6 | Mobile Sitemap browser view |
---|
7 | """ |
---|
8 | implements(ISitemapView) |
---|
9 | |
---|
10 | additional_maps = ( |
---|
11 | ('modification_date', lambda x:DateTime(x.ModificationDate).HTML4()), |
---|
12 | ) |
---|
13 | |
---|
14 | def getFilteredObjects(self): |
---|
15 | path = self.portal.getPhysicalPath() |
---|
16 | portal_types = self.context.getPortalTypes() |
---|
17 | review_states = self.context.getStates() |
---|
18 | return self.portal_catalog(path = path, |
---|
19 | portal_type = portal_types, |
---|
20 | review_state = review_states, |
---|
21 | hasMobileContent = True) |
---|
Note: See
TracBrowser
for help on using the repository browser.