[Product-Developers] Re: problem with extending a content type
Maurits van Rees
m.van.rees at zestsoftware.nl
Mon Mar 2 22:44:26 UTC 2009
Matej Drame, on 2009-03-02:
>
> Hello, guys
>
> I want to show a different template for my custom event content type (which
> extends the default event content type)
> --> this is a part of my configure.zcml:
>
> <browser:page
> for="..interfaces.IMP_Event"
> name="view"
> class="Products.ATContentTypes.content.event.ATEvent"
> template="mp_event_view.pt"
> permission="zope2.View"
> />
The class should point to a browser view, that is: a class inheriting
from Products.Five.BrowserView. If you have no need for special
handling in python code, you could completely remove the class line
here I think.
Does Zope give an error when you start it on the foreground? When
started normally it swallows some errors and continues loading
anyway. Make a deliberate error in this configure.zcml (for example
add '<foo class="hi!"' or something crazier), restart zope and see if
you actually get an error. If not, then the configure.zcml is not
getting loaded.
--
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]
More information about the Product-Developers
mailing list