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: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Danny William Adair Gesendet: Dienstag, 31. Oktober 2000 19:38 An: zope@zope.org 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 - Zope@zope.org 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 )
Danny William Adair wrote:
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.
It happens before then ;-) index_html=None is always a handy one to add in Python Products so ti doesn't get acquried from higher up... cheers, Chris
participants (2)
-
Chris Withers -
Danny William Adair