Changeset 1051 for WAeUP_SRP


Ignore:
Timestamp:
13 Dec 2006, 18:35:54 (18 years ago)
Author:
joachim
Message:

use srp_invalid_access

File:
1 edited

Legend:

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

    r1032 r1051  
    1111
    1212type_name = 'Student'
     13request=REQUEST
    1314ti = context.portal_types[type_name]
    14 REQUEST.set('type_name',type_name)
    15 redirect = REQUEST.RESPONSE.redirect
     15request.set('type_name',type_name)
     16redirect = request.RESPONSE.redirect
    1617wf = context.portal_workflow
    1718validate = REQUEST.has_key("cpsdocument_create_button")
     
    2122
    2223info = context.getStudentInfo()
     24if info is None:
     25    member_id = str(context.portal_membership.getAuthenticatedMember())
     26    logger.info('"%s","access to", "%s"' % (member_id,request.get('PATH_INFO').split('/')[-2]))
     27    return redirect("%s/srp_invalid_access" % context.portal_url())
    2328app_doc = info['app_doc']
    2429review_state = info['review_state']
Note: See TracChangeset for help on using the changeset viewer.