Changeset 1032 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
12 Dec 2006, 10:00:51 (18 years ago)
Author:
Henrik Bettermann
Message:

logging messages modified
Study Course always listed
date labels chsnged

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r1027 r1032  
    4949args = {}
    5050action = "/external_clearance_edit_form"
     51if context.isStudent():
     52    action = "/clearance_edit_form"
     53
    5154if is_valid:
    5255    if cpsdocument_edit_button:
    5356        psm = "Content changed!"
    54         if context.isStudent():
    55            action = "/clearance_edit_form"
    5657        if clear_doc.clr_ac_pin == "":
    5758            res = context.portal_pins(student=member_id)
     
    7576            logger.info('"%s","repeatedly requested clearance"' % (student_id))
    7677            psm = "You have already requested clearance!"
    77             if context.isStudent():
    78                action = "/clearance_edit_form"
    7978        else:
    8079            psm = "You must tick the acknowledgement check box before submission!"
    81             if context.isStudent():
    82                action = "/clearance_edit_form"
    8380    elif clear_and_validate_button and info['review_state'] == "clearance_requested":
    8481        logger.info('"%s","cleared","%s"' % (member_id,student_id ))
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1025 r1032  
    144144        row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link)
    145145    row['review_state'] = so.review_state
    146     row['display'] = so.review_state in ('opened','closed',)
     146    row['display'] = so.review_state in ('opened','closed',) or so.portal_type == 'StudentStudyCourse'
    147147    items.append(row)
    148148info['items'] = items
  • WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py

    r1030 r1032  
    4242error = False
    4343if session.get("clicked",None):
    44     psm = 'Please wait a moment, until "Clearance started" turns green, then click on the green link'
     44    psm = 'Please wait a moment until "Clearance started" turns green, then click on the green link!'
    4545    error = True
     46    logger.info('"%s","repeatedly pressed the clearance button"' % (info['id']))
    4647elif app_doc.passport is None:
    4748    psm = "You must upload your passport picture before you can start the registration process!"
    4849    error = True
     50    logger.info('"%s", "tried to start clerance without passport picture"' % (info['id']))
    4951elif review_state == "clearance_pin_entered":
    50     psm = "You have already entered a clearance pin"
     52    psm = "You have already entered a clearance pin!"
    5153    error = True
     54    logger.info('"%s", "tried to start clearance though already started"' % (info['id']))
    5255elif psm == 'invalid':
    5356    psm = "Please correct your input!"
    5457    error = True
     58    logger.info('"%s","entered wrong clearance pin"' % (info['id']))
    5559if error:
    5660    return context.clearance_pin_form(rendered = res,
     
    6266session.set("clicked","clicked")
    6367pin = str(ds.get('clr_ac_pin'))
    64 logger.info('"%s", "entered clearance pin", "%s"' % (info['id'],pin))
     68logger.info('"%s", "started clearance with pin", "%s"' % (info['id'],pin))
    6569wf.doActionFor(info['student'],'enter_clearance_pin')
    6670wf.doActionFor(info['clear'],'open')
Note: See TracChangeset for help on using the changeset viewer.