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
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
> >
> >
> > ...
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.
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
> 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
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