Ignore:
Timestamp:
4 Jun 2007, 14:19:42 (17 years ago)
Author:
Henrik Bettermann
Message:

log which object type is edited

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py

    r1840 r1855  
    5151    comments = REQUEST.get('comments')
    5252    context.cpsdocument_notify_modification(comments=comments)
     53
     54    ###################################################
    5355    if False:
    5456        if context.portal_type == "StudentStudyCourse":
    5557            course = ds.get('study_course')
    56             student_id = context.getStudentId()
     58            #student_id = context.getStudentId()
    5759            res = context.portal_catalog(portal_type='Certificate',id = course)
    5860            if res:
    5961                c_brain = res[0]
    6062                c_path = c_brain.getPath().split('/')
    61                 student_id = context.getStudentId()
     63                #student_id = context.getStudentId()
    6264                context.students_catalog.modifyRecord(id = student_id,
    6365                                                      course = course,
     
    7173        elif context.portal_type == "StudentApplication": # disabled
    7274            entry_mode = ds.get('entry_mode')
    73             student_id = context.getStudentId()
     75            #student_id = context.getStudentId()
    7476            context.students_catalog.modifyRecord(id = student_id,
    7577                                                  entry_mode = entry_mode,
     
    7880        elif context.portal_type == "StudentClearance":
    7981            matric_no = ds.get('matric_no')
    80             student_id = context.getStudentId()
     82            #student_id = context.getStudentId()
    8183            context.students_catalog.modifyRecord(id = student_id,
    8284                                                  matric_no = matric_no,
     
    8991            email = ds.get('email')
    9092            phone = ds.get('phone')
    91             student_id = context.getStudentId()
     93            #student_id = context.getStudentId()
    9294            #app_doc = context.application.getContent()
    9395            #jamb_sex = 'M'
     
    112114            except KeyError:
    113115                context.courses_catalog.addRecord(**dd)
     116    ###################################################
     117   
     118   
    114119    if cpsdocument_edit_and_view_button is not None:
    115120        action = ''
     
    120125    args = getFormUidUrlArg(REQUEST)
    121126
    122 logger.info('%s edited %s of %s' % (member,context.id,student_id))
     127logger.info('%s edited %s %s of %s' % (member,context.portal_type,context.id,student_id))
    123128args['portal_status_message'] = psm
    124129url = context.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.