Changeset 2314 for WAeUP_SRP


Ignore:
Timestamp:
5 Oct 2007, 06:02:53 (17 years ago)
Author:
Henrik Bettermann
Message:

logging improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/import.py

    r2262 r2314  
    1414current = DateTime.DateTime()
    1515pr = context.portal_registration
     16
     17logger = logging.getLogger('Skins.import')
     18mtool = context.portal_membership
     19member = mtool.getAuthenticatedMember()
    1620
    1721validate = REQUEST.has_key("import")
     
    3236if enable:
    3337    context.portal_catalog.setBypassQueue(1)
     38    logger.info('%s enabled QueueCatalog Bypass' % (member))
    3439    psm = "QueueCatalog Bypass enabled!"
    3540    #return REQUEST.RESPONSE.redirect("%s" % context.absolute_url())
    3641elif disable:
    3742    context.portal_catalog.setBypassQueue(0)
     43    logger.info('%s disabled QueueCatalog Bypass' % (member))
    3844    psm = "QueueCatalog Bypass disabled!"
    3945elif psm == 'invalid':
     
    5258                                    ds.get('import_or_edit')
    5359                                   )
     60    logger.info('%s started import of file %s with schema import_%s in %s mode' % (member,ds.get('filename'),ds.get('name'),)ds.get('import_or_edit'))                               
     61                                   
    5462return context.import_form(rendered = res,
    5563                                 psm = psm,
Note: See TracChangeset for help on using the changeset viewer.