[Zope] dtml problem

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Thu, 15 Feb 2001 20:53:31 +0300 (MSK)


On 15 Feb 2001, Klaus Herrmann wrote:
> <dtml-call "_['doc_id'].manage_edit(_['doc_src'], _['doc_title'])">
>
> doesn't work, as zope treats _['doc_id'] as a string and complains that it
> can't call manage_edit on a string. what's the correct code?

<dtml-call "_.getitem('doc_id', 0).manage_edit(_['doc_src'], _['doc_title'])">

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.