[Kss-devel] Rendering browser view template macros with macroContent

Hedley Roos hedleyroos at gmail.com
Sat Oct 11 13:35:53 CEST 2008


In zope/app/pagetemplate/simpleviewclass.py you'll see 'index' is an
instance of ViewPageTemplateFile from
zope.app.pagetemplate.viewpagetemplatefile.

macroContent needs work. So far I have my own code that can render
macros in viewlets and portlets, and now you have code that can render
macros in views.

We should discuss the way forward with Balazs and Godefroid.

You don't have to hack macroContent. You should have a "class
KssView(Implicit, PloneKSSView)" declaration somewhere. Just subclass
PloneKSSView, override the macroContent method and use that class as a
mix-in instead of PloneKSSView.

Hedley


More information about the Kss-devel mailing list