[Zope] Populate textarea from lines property w/TAL - without adding blank line?

Dieter Maurer dieter at handshake.de
Thu Sep 2 17:28:40 EDT 2004


John Schinnerer wrote at 2004-9-2 02:40 -0700:
>I have a web form - part of a python product that provides a client
>with some content management (e.g. content editing) on their site.
>Some of the fields are textarea, into which I need to populate the
>current contents of a lines property.
>
>Current code is for example:
>
><textarea name="sponsors:lines" rows="6" cols="60"><span
>tal:repeat="line here/sponsors" tal:omit-tag=""><span
>tal:replace="line" />
></span></textarea>

The most natural way works:

<textarea name="lines:lines">
<tal:span repeat="line here/lines" content="line"/>
</textarea>

-- 
Dieter


More information about the Zope mailing list