Ignore:
Timestamp:
11 Dec 2006, 18:12:23 (18 years ago)
Author:
joachim
Message:

made Widgets.py from Widgets_neu.py
corrected a syntax-error in Widgets.py
added some doubleclick error-checking in start_clearance (checked into Custom)
catch ConflictError? in PinTable?.
clearance_edit_form modified to catch anonymous access.
search_students.py + students_index.py actually unchanged.

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt

    r1014 r1030  
    11<metal:block define-macro="clearance_edit_form">
     2<metal:block tal:define="info context/getStudentInfo">
     3  <span tal:condition="not: info">
     4    <metal:block use-macro="here/error_not_found/macros/not_found" />
     5  </span>
     6<metal:block tal:condition="info">
    27<tal:block define="
    3            info context/getStudentInfo;
    48           is_so context/isSectionOfficer;
    59           is_staff context/isStaff;
     
    4650</tal:block>
    4751</metal:block>
     52</metal:block>
     53</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt

    r1006 r1030  
    3535     
    3636        <span tal:replace="structure rendered" />
    37         <tal:block tal:condition="python: batch_info and batch_info['nb_pages'] > 1">
     37        <tal:block tal:condition="python: items and batch_info and batch_info['nb_pages'] > 1">
    3838          <div class="batchLayout">
    3939            <span i18n:translate="">
  • WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py

    r1027 r1030  
    2323app_doc = info['app_doc']
    2424review_state = info['review_state']
    25 
     25session = REQUEST.SESSION
    2626res,psm,ds = lt.renderLayout(layout_id='student_clearance',
    2727                      schema_id= 'student_clearance',
     
    4141                                 )
    4242error = False
    43 if app_doc.passport is None:
     43if session.get("clicked",None):
     44    psm = 'Please wait a moment, until "Clearance started" turns green, then click on the green link'
     45    error = True
     46elif app_doc.passport is None:
    4447    psm = "You must upload your passport picture before you can start the registration process!"
    4548    error = True
     
    5760                                 ds = ds,
    5861                                 )
     62session.set("clicked","clicked")
    5963pin = str(ds.get('clr_ac_pin'))
    6064logger.info('"%s", "entered clearance pin", "%s"' % (info['id'],pin))
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r937 r1030  
    2424
    2525if "ClearanceOfficers" in member.getGroups():
    26     return redirect("%s/search_students" % students_url)
     26    return context.waeup_tool.searchStudents()
     27    #return redirect("%s/search_students" % students_url)
    2728if context.isSectionOfficer():
    2829    return redirect("%s/search_students" % students_url)
Note: See TracChangeset for help on using the changeset viewer.