Changeset 6785
- Timestamp:
- 17 Sep 2011, 23:56:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/schema/field.py
r6784 r6785 93 93 IContextSourceBinder.providedBy(vocabulary)): 94 94 self.vocabulary = vocabulary 95 # Before a default value is checked, it is validated. However, a96 # named vocabulary is usually not complete when these fields are97 # initialized. Therefore signal the validation method to ignore98 # default value checks during initialization of a Choice tied to a99 # registered vocabulary.100 #self._init_field = (bool(self.vocabularyName) or101 # IContextSourceBinder.providedBy(self.vocabulary))102 95 super(TextLineChoice, self).__init__(**kw) 103 #self._init_field = False104 96 return 105 97 … … 126 118 super(TextLineChoice, self)._validate(value) 127 119 128 ## Pass all validations during initialization129 #if self._init_field == 12:130 # return131 120 # Check allowed value range (the vocabulary part) 132 121 vocabulary = self.vocabulary
Note: See TracChangeset for help on using the changeset viewer.