[Zope] File upload and setting Property

Florent Guillaume fg@nuxeo.com
12 Aug 2001 13:52:05 GMT


>   <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')">

Florent Guillaume
Nuxeo