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

Brad Clements bkc at murkworks.com
Thu Sep 2 13:31:53 EDT 2004


On 2 Sep 2004 at 2:40, John Schinnerer wrote:

> 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>
> 

How about

<textarea name="sponsor:lines" rows="6" cols="60"
        tal:content="python:'\n'.join(here.sponsors)">
</textarea>


-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements



More information about the Zope mailing list