Changeset 5496 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
25 Aug 2010, 16:10:37 (14 years ago)
Author:
Henrik Bettermann
Message:

create_level.py: reduce logging
logged_in.py: find pictures with PIN as filename

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

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

    r5022 r5496  
    148148            msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
    149149            logger.info('%s (%s), %s' % (member,s_review_state,msg))
    150 
     150            if 'passport picture not found' in msg:
     151                filename = app_doc.app_ac_pin.replace('-','')
     152                msg = context.waeup_tool.loadStudentFoto(student,filename,folder)
     153                logger.info('%s (%s), %s' % (member,s_review_state,msg))
    151154
    152155        #########################################################
  • WAeUP_SRP/trunk/skins/waeup_student/create_level.py

    r5163 r5496  
    3838    logger.info('%s tried to create already existing level %s' % (student.id,current_level))
    3939    return
    40 
    41 logger.info('%s started to create level %s' % (student.id,current_level))
    4240
    4341if context.hasObject(current_level):
     
    171169                                                     ",".join(existing_uids)))
    172170
    173 logger.info('%s finished to create level %s' % (student.id,current_level))
     171logger.info('%s created level %s' % (student.id,current_level))
    174172
    175173return response.redirect("%s/%s" % (context.absolute_url(),current_level))
Note: See TracChangeset for help on using the changeset viewer.