|
Last change
on this file since 3665 was
3479,
checked in by potar, 14 years ago
|
|
trying to modify structure
|
-
Property svn:eol-style set to
native
|
|
File size:
563 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 = {'modification_date': lambda x: DateTime(x.ModificationDate)} |
|---|
| 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.