[Zope] object properties access strangeness

Jaroslav Lukesh lukesh at seznam.cz
Thu Oct 25 15:17:36 EDT 2007


----- Original Message ----- 
From: "Jonathan" <dev101 at magma.ca>

>> This is working:
>>
>>    <dtml-with picture.gif>
>>        <dtml-var IMGproperty>(existing property at Image)
>>    </dtml-with>
>>
>> And this raise error:
>>
>>    <dtml-with dtml_document_file>
>>        <dtml-var ikona1>(existing property at DTML document)
>>    </dtml-with>

> Try:
>
> <dtml-var "dtml_document_file.getProperty('ikona1', 'badPropertyName')">

Many thanks, it works.

Regards, JL.

PS: for clarity only, it does not work with each filename - I was test it at 
file with dot in their name :o)

<dtml-var "_['dtml.document.file.name.with.dot'].getProperty('ikona1', 
None)">




More information about the Zope mailing list