Changeset 1094 for WAeUP_SRP


Ignore:
Timestamp:
19 Dec 2006, 12:11:44 (18 years ago)
Author:
Henrik Bettermann
Message:

context.setupCurrentSkin() after login enabled for all

Location:
WAeUP_SRP/trunk/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1092 r1094  
    8484                app_doc.edit(mapping = da)
    8585        if s_review_state == "application_pin_entered":
    86             return response.redirect("%s/application_edit_form" % student.absolute_url())
     86            rdirect_url = "%s/application_edit_form" % student.absolute_url()
    8787        elif s_review_state in ('admitted', 'objection_raised',):
    88             return response.redirect("%s/admission_form" % student.absolute_url())
     88            redirect_url = "%s/admission_form" % student.absolute_url()
    8989        elif s_review_state == "clearance_pin_entered":
    90             return response.redirect("%s/clearance_edit_form" % student.absolute_url())
    91         return response.redirect("%s/student_index" % student.absolute_url())
     90            redirect_url = "%s/clearance_edit_form" % student.absolute_url()
     91        redirect_url = "%s/student_index" % student.absolute_url()
    9292    else:
    9393        logger.info('"%s", "logged in"' % (member))
    94         return response.redirect(portal.absolute_url())
     94        redirect_url = portal.absolute_url()
     95#Anonymous
    9596else:
    96         # Setup skins
    97     if (getattr(utool, 'updateSkinCookie', False) and
    98         utool.updateSkinCookie()):
    99         context.setupCurrentSkin()
    10097    response.expireCookie('__ac', path='/')
    10198    return context.user_logged_in_failed()
    10299
     100# Setup skins
     101if (getattr(utool, 'updateSkinCookie', False) and
     102    utool.updateSkinCookie()):
     103    context.setupCurrentSkin()
    103104
     105response.redirect(redirect_url)
     106
  • WAeUP_SRP/trunk/skins/waeup_student/delete_student_from_catalog.py

    r1089 r1094  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=id=[], REQUEST=None
     7##parameters=id=None, REQUEST=None
    88##title=
    99##
  • WAeUP_SRP/trunk/skins/waeup_student/refresh_certificate_info.py

    r1093 r1094  
    1818s_cat = context.students_catalog
    1919s_res = s_cat(course = certid)
    20 from Products.zdb import set_trace
    21 set_trace()
     20#from Products.zdb import set_trace
     21#set_trace()
    2222if not s_res:
    2323    return "No students for %s not found"
    2424refreshed = []
    2525refreshed.append("Record started")
    26 for student_id in [st.id  for st in s_res]: 
     26for student_id in [st.id  for st in s_res]:
    2727    s_cat.modifyRecord(id = student_id,
    2828                       course = course,
Note: See TracChangeset for help on using the changeset viewer.