Just had to add an "index_html" to the ZClass, now it works. So it looks as
if "looking for index_html" starts at the ZClass itself.

thanks for listening anyway ;-)

Danny

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Danny William Adair
Gesendet: Dienstag, 31. Oktober 2000 19:38
An: [EMAIL PROTECTED]
Betreff: [Zope] Change rendering of a folder


Hi,

I would like to subclass the folder class and change the way it gets
rendered. How would no how will I do that? Usually, a folder object looks if
it contains a index_html and calls(renders) it if so. I would like to change
this behavior and call a method of my own when the object gets rendered.

I remember the rstx_document example, where you subclass from the original
and add "Renderable" to the base classes(I think it was important which
first), then provide a "render" method in your new ZClass and that's it.
This didn't work for "Folder".

btw, would I subclass from "OFS: Folder" or from "ObjectManager"?

tia,
Danny


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to