# HG changeset patch # User Sylvain Thénault # Date 1246472301 -7200 # Node ID 16826403affa241067a3bae7dad356d8004f62e7 # Parent 52041b0149490ff0885f6d63fba3ca2d33ab2229 cleanup diff -r 52041b014949 -r 16826403affa web/formwidgets.py --- a/web/formwidgets.py Wed Jul 01 20:18:15 2009 +0200 +++ b/web/formwidgets.py Wed Jul 01 20:18:21 2009 +0200 @@ -231,6 +231,7 @@ """ type = 'radio' + # javascript widgets ########################################################### class DateTimePicker(TextInput): diff -r 52041b014949 -r 16826403affa web/views/cwproperties.py --- a/web/views/cwproperties.py Wed Jul 01 20:18:15 2009 +0200 +++ b/web/views/cwproperties.py Wed Jul 01 20:18:21 2009 +0200 @@ -299,11 +299,10 @@ _ = form.req._ if entity.has_eid(): return [(_(entity.pkey), entity.pkey)] - # key beginning with 'system.' should usually not be edited by hand choices = entity.vreg.user_property_keys() return [(u'', u'')] + sorted(zip((_(v) for v in choices), choices)) - + class PropertyValueField(StringField): """specific field for CWProperty.value which will be different according to the selected key type and vocabulary information