[Zope] File upload and setting Property

Tino Wildenhain tino@wildenhain.de
Sun, 12 Aug 2001 22:23:59 +0200


Hi,

--On Sonntag, 12. August 2001 13:52 +0000 Florent Guillaume <fg@nuxeo.com> wrote:

>>   <dtml-call expr=3D"file_id.manage_addProperty('propertyxy', file_xy, 'string')">
>>   <!-- doesn=B4t 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=3D"_.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=3D"manage_addFile()">   </dtml-with>
gives the context anyway.

Regards
Tino