web/views/cwproperties.py
changeset 4159 6b2b20c73d59
parent 4156 1bbb0ee42c8e
child 4164 119a374c5eb4
equal deleted inserted replaced
4158:0e97cf2cf55b 4159:6b2b20c73d59
   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