equal
deleted
inserted
replaced
333 msg = form._cw._('value associated to this key is not editable ' |
333 msg = form._cw._('value associated to this key is not editable ' |
334 'manually') |
334 'manually') |
335 self.widget = NotEditableWidget(entity.printable_value('value'), msg) |
335 self.widget = NotEditableWidget(entity.printable_value('value'), msg) |
336 # XXX race condition when used from CWPropertyForm, should not rely on |
336 # XXX race condition when used from CWPropertyForm, should not rely on |
337 # instance attributes |
337 # instance attributes |
338 self.initial = pdef['default'] |
338 self.value = pdef['default'] |
339 self.help = pdef['help'] |
339 self.help = pdef['help'] |
340 vocab = pdef['vocabulary'] |
340 vocab = pdef['vocabulary'] |
341 if vocab is not None: |
341 if vocab is not None: |
342 if callable(vocab): |
342 if callable(vocab): |
343 # list() just in case its a generator function |
343 # list() just in case its a generator function |