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