Changeset 8540 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 29 May 2012, 06:22:11 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py
r8290 r8540 31 31 def generate_applicant_id(container=None): 32 32 if container is not None: 33 aid = u"%s_%d" % (container.code, r().randint(99999,1000000))34 while aidin container.keys():35 aid = u"%s_%d" % (container.code, r().randint(99999,1000000))36 return aid33 key = r().randint(99999,1000000) 34 while key in container.keys(): 35 key = r().randint(99999,1000000) 36 return u"%s_%d" % (container.code, key) 37 37 else: 38 38 # In some tests we don't use containers -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8533 r8540 349 349 date_of_birth = FormattedDate( 350 350 title = _(u'Date of Birth'), 351 required = True,351 required = False, 352 352 #date_format = u'%d/%m/%Y', # Use grok-instance-wide default 353 353 show_year = True, -
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r8509 r8540 347 347 failed_writer, string_row, 348 348 "%s Skipping." % error.message) 349 continue 349 350 except DuplicationError, error: 350 351 num_warns += 1
Note: See TracChangeset for help on using the changeset viewer.