On Thu, 2008-08-21 at 13:30 +0200, Hermann Himmelbauer wrote:
> Yes, many thanks for that, this did the trick! Interestingly, something like 
> this did not work::
> 
> def attrcode(self):
>       return '<broken>'
> 
> <input value="" tal:attributes="value view/attrcode" />

Of course not. The quoting happens because of tal:attributes. Just
moving the `python:...` statement into the view code doesn't make a
structural difference.

What makes it work is the `structure` prefix on the tal:replace part
which doesn't touch the result of the evaluation.

Christian

-- 
Christian Theune · [EMAIL PROTECTED]
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to