Re: [dzug-zope] Seite in Plone vo n der Navigation auschließen

Nico Grubert <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
> Ich sehe grad, dass ich diese Eigenschaften in meiner Renderer-Klasse 
> habe. Keine Ahnung, warum darin in besagtem Post keine Rede ist. 
> Merkwürdig...

> class MyRenderer(Renderer):
> 
>      _template = ViewPageTemplateFile('navigation.pt')
>      recurse = ViewPageTemplateFile('navigation_recurse.pt')
> 
>      @memoize
>      def getMetaTypesNotToList(self):
>          context = self.context
>          portal_properties = getToolByName(context, 'portal_properties')
>          navtree_properties = getattr(portal_properties, 
> 'navtree_properties')
>          return list(navtree_properties.metaTypesNotToList)

Ah okay, ich dachte, diese Methoden werden von irgendwoher geerbt.
Perfekt. Klappt wunderbar. Danke!


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.