Changeset 3291 for WAeUP_SRP


Ignore:
Timestamp:
9 Mar 2008, 12:21:06 (17 years ago)
Author:
Henrik Bettermann
Message:

add logging messages

Location:
WAeUP_SRP/base/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/cps_custom/folder_delete.py

    r3008 r3291  
    3636        evtool = getPublicEventService(here)
    3737        evtool.notifyEvent('workflow_delete', ob, {})
     38        logger.info('%s deleted object %s' % (member_id,id))
    3839    here.manage_delObjects(ids)
    3940    message = 'portal_status_message=psm_item(s)_deleted'
  • WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt

    r3285 r3291  
    3535            <th>Date</th>
    3636            <th>Message</th>
    37             <th>Conform Headline</th>
     37            <th>Unknown Fields</th>
    3838          </tr>           
    3939          <tr tal:repeat="row rows"
  • WAeUP_SRP/base/skins/waeup_upload/uploads_index.py

    r3285 r3291  
    1313"""
    1414import DateTime
     15import logging
     16logger = logging.getLogger('Skins.upload_index')
     17
     18
    1519try:
    1620    from Products.zdb import set_trace
     
    3943        short_id = long_id.replace('.csv','')
    4044        doc = getattr(context, long_id).getContent()
     45        logger.info('%s edited object %s' % (member,long_id))
    4146        doc.edit(mapping = request.form[short_id])
    4247        msg, invalid_keys = doc['checkKeys']()
     
    5055        if new_keys:
    5156            doc.editHeadline(new_keys)
     57            for key in new_keys:
     58                logger.info('%s changed column heading in file %s from %s to %s' % (member,long_id,key[0],key[1]))
    5259        request.RESPONSE.redirect(context.absolute_url())
    5360
     
    109116d['url'] = upload.absolute_url()
    110117upload.getContent().edit(mapping=d)
     118logger.info('%s uploaded file %s' % (member,filename))
    111119
    112120request.RESPONSE.redirect(context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.