Ignore:
Timestamp:
16 Oct 2006, 22:30:16 (18 years ago)
Author:
joachim
Message:

fixed several bugs in the Apply for PUME Process:
jamb_reg_no had wrong widget
applying with a different PIN a second time led to an error.

the new fields:
appl_email, appl_mobile are set to hidden in laymode create
could not set the fields to required, cause that broke the applyForm.
layout: student_application.xml still has them set to required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r708 r710  
    2828    if letter not in ('ABCDEFGIHKLMNOPQRSTUVWXY'):
    2929        letter= r.choice('ABCDEFGHKLMNPQRSTUVWXY')
    30     return "%c%d" % (letter,r.randint(99999,1000000))
     30    students = context.portal_catalog(meta_type = "StudentsFolder")[-1]
     31    sid = "%c%d" % (letter,r.randint(99999,1000000))
     32    while hasattr(students, sid):
     33        sid = "%c%d" % (letter,r.randint(99999,1000000))
     34    return sid
    3135    #return "%c%d" % (r.choice('ABCDEFGHKLMNPQRSTUVWXY'),r.randint(99999,1000000))
    3236
Note: See TracChangeset for help on using the changeset viewer.