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
...@@ -195,19 +195,20 @@ class ZCommonSheet(OFS.PropertySheets.PropertySheet, OFS.SimpleItem.Item): ...@@ -195,19 +195,20 @@ class ZCommonSheet(OFS.PropertySheets.PropertySheet, OFS.SimpleItem.Item):
% (id, id) % (id, id)
) )
if t=='selection': if t=='selection':
return (''' return ('''
<!--#if "_.has_key('%(select_variable)s')"--> <!--#if "_.has_key('%(id)s')"-->
<select name="%(id)s"> <select name="%(id)s">
<!--#in %(select_variable)s--> <!--#in "_.string.split('%(select_variable)s')"-->
<option <option
<!--#if "_['sequence-item']==%(id)s"--> <!--#if "_['sequence-item']=='%(id)s'"-->
SELECTED<!--#/if--> SELECTED<!--#/if-->
><!--#var sequence-item--></option> ><!--#var sequence-item--></option>
<!--#/in--> <!--#/in-->
</select> </select>
<!--#else--> <!--#else-->
No value for %(select_variable)s No value for %(id)s
<!--#/if-->''' <!--#/if-->'''
% p % 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