Last change
on this file since 3565 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:
544 bytes
|
Line | |
---|
1 | from DateTime import DateTime |
---|
2 | from quintagroup.plonegooglesitemaps.browser.commonview import * |
---|
3 | |
---|
4 | class SitemapView(CommonSitemapView): |
---|
5 | """ |
---|
6 | 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 | return self.portal_catalog( |
---|
16 | path = self.search_path, |
---|
17 | portal_type = self.context.getPortalTypes(), |
---|
18 | review_state = self.context.getStates() |
---|
19 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.