[Zope] expected string or Unicode object, ImplicitAcquirerWrapper found

Chris Withers lists at simplistix.co.uk
Wed Mar 24 08:23:14 EST 2004


Marc Lindahl wrote:

>> "logoName" is an "ImplicitAcquirerWrapper" wrapping your Python Script.
>> Thus, you should call it to get "logo.jpg".
>>
>> I expect that you somehow want to get the object with id "logo.jpg".
>> This would look like:
>>
>>      "_.getitem(logoName())".
> 
> 
> got it...  that works...  also looks like no way to get something that 
> behaves like a variable or property but is really a python script 
> returning something :(

<tal:x define="logoName here/logoName">

...works for me ;-)

Chris

PS: If you insist on torturing yourself, you can use dtml-let in the same way...

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list