Changeset 6664 for main/waeup.sirp/trunk
- Timestamp:
- 3 Sep 2011, 02:30:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py
r6662 r6664 8 8 # XXX: using catalog search here might be overkill? 9 9 if letter == '?': 10 letter= r .choice('ABCDEFGHKLMNPQRSTUVWXY')11 sid = u"%c%d" % (letter,r .randint(99999,1000000))10 letter= r().choice('ABCDEFGHKLMNPQRSTUVWXY') 11 sid = u"%c%d" % (letter,r().randint(99999,1000000)) 12 12 while search(query=sid,searchtype='student_id'): 13 sid = u"%c%d" % (letter,r .randint(99999,1000000))13 sid = u"%c%d" % (letter,r().randint(99999,1000000)) 14 14 return sid
Note: See TracChangeset for help on using the changeset viewer.