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 · ct@gocept.com 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