Last change
on this file since 3663 was
3510,
checked in by potar, 12 years ago
|
Merged sitemap_date branch into trunk
|
-
Property svn:eol-style set to
native
|
File size:
646 bytes
|
Line | |
---|
1 | from DateTime import DateTime |
---|
2 | from quintagroup.plonegooglesitemaps.browser.commonview \ |
---|
3 | import CommonSitemapView, implements, ISitemapView |
---|
4 | |
---|
5 | |
---|
6 | class SitemapView(CommonSitemapView): |
---|
7 | """ |
---|
8 | Sitemap browser view |
---|
9 | """ |
---|
10 | implements(ISitemapView) |
---|
11 | |
---|
12 | additional_maps = ( |
---|
13 | ('modification_date', |
---|
14 | lambda x: x.sitemap_date or DateTime(x.ModificationDate).HTML4()), |
---|
15 | ) |
---|
16 | |
---|
17 | def getFilteredObjects(self): |
---|
18 | return self.portal_catalog( |
---|
19 | path=self.search_path, |
---|
20 | portal_type=self.context.getPortalTypes(), |
---|
21 | review_state=self.context.getStates(), |
---|
22 | is_default_page=False |
---|
23 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.