[Zope] Populate textarea from lines property w/TAL - without adding
blank line?
John Schinnerer
johnschinnerer at yahoo.com
Thu Sep 2 05:40:52 EDT 2004
Aloha,
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>
I have to have a newline after the tal:replace="line" tag or all the
lines items run together on one line.
This also adds a blank line after the last item in the field, which is
saved when the form is next submitted...and so on, and on...
Plus I have to have no newlines anywhere else or they each one inserts
a blank line in the field, which is not the source formatting I'd
prefer.
How can I avoid these problems?
Is there some clever TAL, or do I need to use python somehow?
Any help appreciated, thanks,
John S.
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
More information about the Zope
mailing list