Changeset 6664


Ignore:
Timestamp:
3 Sep 2011, 02:30:25 (13 years ago)
Author:
uli
Message:

Fix missing calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py

    r6662 r6664  
    88    # XXX: using catalog search here might be overkill?
    99    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))
    1212    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))
    1414    return sid
Note: See TracChangeset for help on using the changeset viewer.