equal
deleted
inserted
replaced
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)) |