Commit aef7da0b authored by Ken Manheimer's avatar Ken Manheimer

ZCommonSheet._edit_widget_for_type(): A number of corrections to make

the 'selection' case produce a properly formatted view.
parent 3dbe1a82
......@@ -194,20 +194,21 @@ class ZCommonSheet(OFS.PropertySheets.PropertySheet, OFS.SimpleItem.Item):
--><!--#var sequence-item-->\n<!--#/in--></textarea>'''
% (id, id)
)
if t=='selection':
return ('''
<!--#if "_.has_key('%(select_variable)s')"-->
<!--#if "_.has_key('%(id)s')"-->
<select name="%(id)s">
<!--#in %(select_variable)s-->
<!--#in "_.string.split('%(select_variable)s')"-->
<option
<!--#if "_['sequence-item']==%(id)s"-->
<!--#if "_['sequence-item']=='%(id)s'"-->
SELECTED<!--#/if-->
><!--#var sequence-item--></option>
<!--#/in-->
</select>
<!--#else-->
No value for %(select_variable)s
No value for %(id)s
<!--#/if-->'''
% p
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment