Ignore:
Timestamp:
17 Mar 2007, 15:25:56 (18 years ago)
Author:
Henrik Bettermann
Message:

new logging format Part 4 (rest)

File:
1 edited

Legend:

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

    r1456 r1571  
    1717from Products.CPSDocument.utils import getFormUidUrlArg
    1818
     19import logging
     20logger = logging.getLogger('Skins.waeup_edit')
     21
     22mtool = context.portal_membership
     23member = mtool.getAuthenticatedMember()
     24
    1925# Check flexible controls
    2026#context.editLayouts(REQUEST=REQUEST)
     
    2531if context.portal_type == "StudentStudyCourse":
    2632    if len(context.objectIds()) > 0:
    27         psm = 'Edit of StudyCourse is only possible if there are no levels'
     33        psm = 'Edit of StudentStudyCourse is only possible if there are no levels inside!'
    2834        args = getFormUidUrlArg(REQUEST)
    2935        args['portal_status_message'] = psm
     
    5864                                                  department = c_path[-3],
    5965                                                  )
     66            logger.info('%s edited %s (%s) of %s' % (member,context.id,course,student_id))
     67
    6068    elif context.portal_type == "StudentApplication":
    6169        entry_mode = ds.get('entry_mode')
     
    6472                                              entry_mode = entry_mode,
    6573                                             )
     74        logger.info('%s edited %s of %s' % (member,context.id,student_id))
    6675    elif context.portal_type == "StudentClearance":
    6776        matric_no = ds.get('matric_no')
     
    7079                                              matric_no = matric_no,
    7180                                             )
     81        logger.info('%s edited %s of %s' % (member,context.id,student_id))                                             
    7282    elif context.portal_type in ("StudentPersonal",):
    7383        name = "%(firstname)s %(middlename)s %(lastname)s" % ds
     
    8191        #if ds.get('sex'):
    8292        #    jamb_sex = 'F'
    83         # originally imported data must be kept; app_doc should not be changed here 
     93        # originally imported data must be kept; app_doc should not be changed here
    8494        #app_doc.edit(mapping={'jamb_lastname': name,
    8595        #                      'jamb_sex': jamb_sex
     
    91101                                              sex = ds.get('sex'),
    92102                                             )
     103        logger.info('%s edited %s of %s' % (member,context.id,student_id))
    93104    elif context.portal_type == "Course":
    94105        dd = {}
Note: See TracChangeset for help on using the changeset viewer.