12 Aug
2001
12 Aug
'01
8:23 p.m.
Hi, --On Sonntag, 12. August 2001 13:52 +0000 Florent Guillaume <fg@nuxeo.com> wrote:
<dtml-call expr="file_id.manage_addProperty('propertyxy', file_xy, 'string')"> <!-- doesn´t work becaus there is no file 'file_id'. I tried different things like getattr(_, file_id) etc. but all this things didn't work. --> </dtml-let>
I think you want something like: <dtml-call expr="_.getattr(this(), file_id).manage_addProperty('propertyxy', file_xy, 'string')">
*shiver* ;) Would it not be better to drop DTML as a whole here? ;) Btw. <dtml-with expr="manage_addFile()"> </dtml-with> gives the context anyway. Regards Tino