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 dtml-in content 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. :)

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 dtml-var content dtml-with content... dtml-if content to call different functions. The first renders the object, the second returns a mapping of the content's attributes/properties, the third

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 dtml-var content, its __call__ method is called. The __call__ method is also called if the object appears in dtml-if content or