iap_y2fun.com writes:
 > My problem is that : I have a ZClass based on OFS::File.
 > I need to override the default index_html for my own purpose.
 > After I created my own index_html, I found myself can't access the content
 > of that object.
 > Since:
 > 1. I have no way to access the original method index_html of the base class
I, too, would wish that ZClasses provide access to overwritten
methods (as Python does).

 > 2. In OFS::File, There is no other method than index_html to access the
 > content of this object.
 > That's why I modify Image.py and add one line:
 > getContent=index_html
 > It's work for me.
For file objects, you can use "str(data)".

It won't work with images, though.



Dieter

_______________________________________________
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