- Timestamp:
- 18 Nov 2014, 11:37:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py
r11958 r11985 56 56 return _('female') 57 57 58 58 59 class RegNumNotInSource(ValidationError): 59 60 """Registration number exists already … … 62 63 # by zope.formlib. 63 64 pass 65 64 66 65 67 class RegNumberSource(object): … … 79 81 validation_error = RegNumNotInSource 80 82 comp_field = 'customer_id' 83 81 84 def __init__(self, context): 82 85 self.context = context … … 107 110 return True 108 111 112 109 113 def contextual_reg_num_source(context): 110 114 source = RegNumberSource(context) 111 115 return source 116 112 117 directlyProvides(contextual_reg_num_source, IContextSourceBinder)
Note: See TracChangeset for help on using the changeset viewer.