Ignore:
Timestamp:
15 Nov 2005, 16:28:29 (19 years ago)
Author:
joachim
Message:

=added Faculties and Departments in install + other cosmetics

Location:
waeup_product/trunk/skins/waeup_student
Files:
3 edited
2 moved

Legend:

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

    r166 r173  
    6060                               schema_id = 'jamb')
    6161
    62 return jamb.admission_slip_form(rendered = res, dict = ds)
     62return context.admission_slip_form(rendered = res, dict = ds)
    6363
  • waeup_product/trunk/skins/waeup_student/clearance.py

    r172 r173  
    2626                      ob={},
    2727                      layout_mode='create',
    28                       action = "clearence",
     28                      action = "clearance",
    2929                      submit = "submit",
    3030                      )
    3131
    3232if psm == 'invalid':
    33     return context.clearence_form(rendered = res,
     33    return context.clearance_form(rendered = res,
    3434                                 psm = "Please correct your input",
    3535                                 ds = ds,
    3636                                 )
    3737elif psm == '':
    38     return context.clearence_form(rendered = res,
     38    return context.clearance_form(rendered = res,
    3939                                 psm = None,
    4040                                 ds = ds,
     
    4646    if len(search) < 1:
    4747        psm = "Your not admitted"
    48         return context.clearence_form(rendered = res,
     48        return context.clearance_form(rendered = res,
    4949                                 psm = psm,
    5050                                 ds = ds,
     
    5353    if sf and getattr(sf,'PERSONAL',None):
    5454        psm = "Your already admitted, please login"
    55         return context.clearence_form(rendered = res,
     55        return context.clearance_form(rendered = res,
    5656                                 psm = psm,
    5757                                 ds = ds,
     
    6060    student = getattr(context,s_id)
    6161    ds.set('sc_date',current)
    62     student.getContent().setScratchCardData('clearence',ds)
     62    student.getContent().setScratchCardData('clearance',ds)
    6363    sc_pin =  ds.get('sc_pin')
    64     return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s"
     64    #return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=UnSeT&sc_pin=%s"
     65    return REQUEST.RESPONSE.redirect("%s/logged_in?__ac_name=%s&__ac_password=123456&sc_pin=%s"
    6566                                    % (context.absolute_url(),s_id,sc_pin))
  • waeup_product/trunk/skins/waeup_student/clearance_form.pt

    r172 r173  
    1414    </metal:block>
    1515      <metal:block fill-slot="main">
    16         <h1>Clearence and Eligibility Processing </h1>
     16        <h1>Clearance and Eligibility Processing </h1>
    1717        <div tal:replace="structure rendered_main" />
    1818          Instructions :<br />
  • waeup_product/trunk/skins/waeup_student/create_jamb.py

    r152 r173  
    5151    noCPSMember = False
    5252    try:
    53         pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor'))
     53        #pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor'))
     54        pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student','Contributor'))
    5455    except:
    5556        noCPSMember = True
    5657    if noCPSMember:
    57         pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor'))
     58        #pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor'))
     59        pr.addMember(s_id, '123456',roles=('Member','Student','Contributor'))
    5860    student.manage_setLocalRoles(s_id, ['Owner'])
    5961    jamb.manage_setLocalRoles(s_id, ['Owner'])
  • waeup_product/trunk/skins/waeup_student/eligibility.py

    r164 r173  
    4444    s_personal = context.PERSONAL.getContent()
    4545    s_personal.edit(mapping={'email': ds.get('email')})
    46     pm.setPassword(REQUEST.get("widget__pw"))
    47    
     46    #pw = REQUEST.get("widget__pw")
     47    #pm.setPassword(pw)
     48psm = 'Email hay been successfully set.'
     49#psm += 'please <a href="login_form">Login</a> with username %s and password %s' % (context.getId(),pw)
    4850return context.eligibility_form(rendered = res,
    49                                  psm = 'Password and Email have been successfully set',
     51                                 psm = psm,
    5052                                 ds = ds,
    5153                                 )
Note: See TracChangeset for help on using the changeset viewer.