[CMF-checkins] CVS: CMF/CMFDecor/skins/zpt_content - metadata_edit_form.pt:1.5
Tres Seaver
tseaver@zope.com
Sat, 27 Oct 2001 09:21:52 -0400
Update of /cvs-repository/CMF/CMFDecor/skins/zpt_content
In directory cvs.zope.org:/tmp/cvs-serv9034
Modified Files:
metadata_edit_form.pt
Log Message:
- Fix free-form subject in textarea.
=== CMF/CMFDecor/skins/zpt_content/metadata_edit_form.pt 1.4 => 1.5 ===
<tr valign="top">
<th align="right"> Subject </th>
- <td>
- <textarea name="subject:lines" rows="3"
- cols="20"
- tal:define="lines here/subjectsList"><span tal:repeat="line lines" tal:replace="line"></span></textarea>
+ <td tal:define="subj_lines python: modules['string'].join(
+ here.subjectsList(), '\n' )">
+ <textarea name="subject:lines" rows="3" cols="20"
+ tal:content="subj_lines"></textarea>
<br>
<select name="subject:list" multiple>
<option value=""
- tal:define="items python: here.portal_metadata.listAllowedSubjects(here); subjects here/Subject"
+ tal:define="items python: here.portal_metadata.listAllowedSubjects(
+ here);
+ subjects here/Subject;
+ "
tal:repeat="item items"
tal:attributes="value item; selected python: item in subjects"
tal:content="item">