Last change
on this file since 397 was
397,
checked in by crchemist, 18 years ago
|
Added new tests and fix errors.
|
-
Property svn:eol-style set to
native
|
File size:
747 bytes
|
Line | |
---|
1 | from commonview import * |
---|
2 | |
---|
3 | class MobileSitemapView(CommonSitemapView): |
---|
4 | """ |
---|
5 | Mobile Sitemap browser view |
---|
6 | """ |
---|
7 | implements(ISitemapView) |
---|
8 | |
---|
9 | def getFilteredObjects(self): |
---|
10 | path = self.portal.getPhysicalPath() |
---|
11 | portal_types = self.context.getPortalTypes() |
---|
12 | review_states = self.context.getStates() |
---|
13 | return self.portal_catalog(path = path, |
---|
14 | portal_type = portal_types, |
---|
15 | review_state = review_states, |
---|
16 | hasMobileContent = True) |
---|
17 | |
---|
18 | def getExceptionResults(self): |
---|
19 | path = self.portal.getPhysicalPath() |
---|
20 | return applyOperations( |
---|
21 | self.portal_catalog(path = path, |
---|
22 | review_state = ['published'],), |
---|
23 | []) |
---|
Note: See
TracBrowser
for help on using the repository browser.