Changeset 1676


Ignore:
Timestamp:
10 Apr 2007, 12:08:13 (18 years ago)
Author:
Henrik Bettermann
Message:

redirect removed, logger.info added (in custom)

File:
1 edited

Legend:

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

    r1659 r1676  
    3535
    3636if context.hasObject(current_level) and create_level :
    37     logger.info('%s tried to add already existing level %s ' % (student.id,current_level))
     37    logger.info('%s tried to add already existing level %s' % (student.id,current_level))
    3838    return
    3939
     
    5353else:
    5454    context.invokeFactory('StudentStudyLevel',"%s" % current_level)
     55    logger.info('%s created level %s' % (student.id,current_level))
    5556    level = getattr(context,"%s" % current_level)
    5657    context.portal_workflow.doActionFor(level,'open')
     
    5859    level.getContent().edit(mapping={'session': study_session})
    5960    context.portal_workflow.doActionFor(level,'close_for_edit')
    60     response.redirect("%s?level_created=%s" % (context.absolute_url(),current_level))
    6161results = context.results_import(matric_no = student.matric_no)
    6262if results:
Note: See TracChangeset for help on using the changeset viewer.