web/views/cwproperties.py
changeset 8695 358d8bed9626
parent 8665 e65af61bde7d
child 10277 e7cdf820fe8f
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   347             # no key set yet, just include an empty div which will be filled
   347             # no key set yet, just include an empty div which will be filled
   348             # on key selection
   348             # on key selection
   349             return
   349             return
   350         try:
   350         try:
   351             pdef = form._cw.vreg.property_info(entity.pkey)
   351             pdef = form._cw.vreg.property_info(entity.pkey)
   352         except UnknownProperty, ex:
   352         except UnknownProperty as ex:
   353             form.warning('%s (you should probably delete that property '
   353             form.warning('%s (you should probably delete that property '
   354                          'from the database)', ex)
   354                          'from the database)', ex)
   355             msg = form._cw._('you should probably delete that property')
   355             msg = form._cw._('you should probably delete that property')
   356             self.widget = NotEditableWidget(entity.printable_value('value'),
   356             self.widget = NotEditableWidget(entity.printable_value('value'),
   357                                             '%s (%s)' % (msg, ex))
   357                                             '%s (%s)' % (msg, ex))