RE: [Zope-dev] Rendering of objects in DTML

2003-01-16 Thread Leonardo Rochael Almeida
For the record, by following the same pattern it should be possible to implement a class that responds to too, by implementing __getitem__ On Wed, 2003-01-15 at 06:00, Bjorn Stabell wrote: > Thanks Leo, this is very helpful. It should probably be in a HOWTO > somewhere. :) > > > -Original M

RE: [Zope-dev] Rendering of objects in DTML

2003-01-14 Thread Bjorn Stabell
Thanks Leo, this is very helpful. It should probably be in a HOWTO somewhere. :) > -Original Message- > From: Leonardo Rochael Almeida [mailto:[EMAIL PROTECTED]] > > On Tue, 2003-01-14 at 01:01, Bjorn Stabell wrote: > > > Bjorn Stabell wrote: > > > > I would like > > > > > > ...

RE: [Zope-dev] Rendering of objects in DTML

2003-01-14 Thread Leonardo Rochael Almeida
On Tue, 2003-01-14 at 01:01, Bjorn Stabell wrote: > > Bjorn Stabell wrote: > > I would like > > > ... > > > to call different functions. The first renders the object, the second > returns a mapping of the content's attributes/properties, the third > checks for "trueness" of the content.

Re: [Zope-dev] Rendering of objects in DTML

2003-01-14 Thread Chris Withers
Bjorn Stabell wrote: I would like ... to call different functions. The first renders the object, the second returns a mapping of the content's attributes/properties, the third checks for "trueness" of the content. Rendering a content could be an expensive operation and I don't want to

RE: [Zope-dev] Rendering of objects in DTML

2003-01-13 Thread Bjorn Stabell
> Bjorn Stabell wrote: > > Hello, > > > > When a content is rendered by the Zpublisher, its index_html() is > > called. When it is rendered in DTML, e.g., as content>, its > > __call__ method is called. The __call__ method is also > called if the > > object appears in or . Is it > > poss

Re: [Zope-dev] Rendering of objects in DTML

2003-01-13 Thread Chris Withers
Bjorn Stabell wrote: Hello, When a content is rendered by the Zpublisher, its index_html() is called. When it is rendered in DTML, e.g., as , its __call__ method is called. The __call__ method is also called if the object appears in or . Is it possible to render these two cases differently fr