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

context.setupCurrentSkin() after login enabled for all

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.