Ignore:
Timestamp:
10 Dec 2006, 15:10:32 (18 years ago)
Author:
joachim
Message:

fix traceback for anonymous,
anonymous access now redirects to srp_anonymous_view

File:
1 edited

Legend:

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

    r1020 r1024  
    1616current = DateTime.DateTime()
    1717import logging
    18 logger = logging.getLogger('Student.Application.Edit')
     18logger = logging.getLogger('Student.application_edit')
    1919
    2020# Until ajax posts directly to its own script...
     
    3030
    3131if info is None:
    32     logger.info('"anonymous access","%s"' % request.get('URL0'))
    33     REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     32    logger.info('"anonymous access","%s"' % REQUEST.get('URL0'))
     33    return REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
    3434
    3535student = info['student']
     
    5656    elif cpsdocument_edit_and_view_button:
    5757        if app_doc.passport is not None:
    58             logger.info('"%s", "proceeded to start clearance" % (info['id']))
     58            logger.info('"%s", "proceeded to start clearance"' % (info['id']))
    5959            action = "/start_clearance"
    6060            base_url = student.absolute_url()
Note: See TracChangeset for help on using the changeset viewer.