Re: [Zope] Python/Zope API

2000-07-31 Thread Kapil Thangavelu
2. Are there ways to improve it? For example I would love to know how you can check if you can actually render an object. (For example you can not render Control_Panel). To render your python product objects in Zope like dtml-var yourObject you just define a method __str__ take a look

Re: [Zope] Python/Zope API

2000-07-31 Thread Kapil Thangavelu
"Alexandre A. Rodioukov" wrote: Kapil Thangavelu [EMAIL PROTECTED] writes: 2. Are there ways to improve it? For example I would love to know how you can check if you can actually render an object. (For example you can not render Control_Panel). To render your python

[Zope] Python/Zope API

2000-07-30 Thread Alexandre A. Rodioukov
Hello folks. I want to be able to render Zope objects from my python external method/product. Idea is to use it to render parent object. Here is code I came up so far with: def view(self, REQUEST): if self.meta_type == 'Folder': doc = self.aq_base.index_html(self,