Ignore:
Timestamp:
17 Oct 2005, 11:37:09 (19 years ago)
Author:
joachim
Message:

=more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_student/check_admission.py

    r48 r55  
    3535elif psm == 'valid':
    3636    s_id = "s%s" % ds.get('jamb_id')
    37     if not hasattr(context,s_id):
     37    sf = getattr(context,s_id,None)
     38    if sf is None:
     39        psm = "Your not admitted"
    3840        return context.check_admission_form(rendered = res,
    39                                  psm = "Your not admitted yet",
     41                                 psm = psm,
     42                                 ds = ds,
     43                                 )
     44    elif hasattr(sf,'PERSONAL'):
     45        psm = "Your already admitted"
     46        return context.check_admission_form(rendered = res,
     47                                 psm = psm,
    4048                                 ds = ds,
    4149                                 )
Note: See TracChangeset for help on using the changeset viewer.