- Timestamp:
- 3 Jun 2012, 13:19:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8607 r8611 41 41 MAX_UPLOAD_SIZE = 1024 * 20 42 42 43 _marker = object() # a marker different from None 44 43 45 class RegNumInSource(ValidationError): 44 46 """Registration number exists already … … 89 91 def contains(self, context, value): 90 92 context_appcat = getattr(getattr( 91 context, '__parent__', None), 'application_category', None)92 if context_appcat is None:93 context, '__parent__', None), 'application_category', _marker) 94 if context_appcat is _marker: 93 95 # If the context (applicant) has no application category, 94 96 # then it might be not part of a container (yet), for
Note: See TracChangeset for help on using the changeset viewer.