Changeset 2404 in products
- Timestamp:
- May 31, 2010 1:20:46 PM (14 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/configure.zcml
r1593 r2404 21 21 </class> 22 22 23 <utility 24 component=".vocabularies.TypesWithInterfaceVocabularyFactory" 25 name="googlesitemaps.vocabularies.TypesWithInterfaceVocabulary" 26 /> 27 23 28 </configure> -
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/sitemap.py
r1593 r2404 33 33 required=True, 34 34 default=['Document',], 35 vocabulary ="availablePortalTypes",35 vocabulary_factory="plone.app.vocabularies.ReallyUserFriendlyTypes", 36 36 #schemata ='default', 37 37 widget=atapi.MultiSelectionWidget( 38 38 label=_(u"Define the types"), 39 description=_(u"Define the types to be included in sitemap."), 39 description=_(u"Define the types to be included in sitemap. " \ 40 "All listed types automaticall will be extended with " \ 41 "additional fields, if its applicable."), 40 42 ), 41 43 ), … … 135 137 self._setProperty('layout', default_layout) 136 138 137 def availablePortalTypes(self):138 pt = getToolByName(self, 'portal_types')139 types = pt.listContentTypes()140 return atapi.DisplayList(zip(types,types))139 # def setPortalTypes(self): 140 # pt = getToolByName(self, 'portal_types') 141 # types = pt.listContentTypes() 142 # return atapi.DisplayList(zip(types,types)) 141 143 142 144 def getWorkflowStates(self):
Note: See TracChangeset
for help on using the changeset viewer.