Changeset 7653


Ignore:
Timestamp:
15 Feb 2012, 11:03:57 (13 years ago)
Author:
Henrik Bettermann
Message:

Log user management. If possible use full sentences in log messages. Use the imperative form when process is going to be started and the passive form when the process is finished.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/meta.py

    r7321 r7653  
    9999        for name, index in self.indexes.items():
    100100            try:
    101                 site.logger.info('Create index `%s` in catalog' % name)
     101                site.logger.info('Create index `%s` in catalog.' % name)
    102102                index.setup(catalog, name, self.context, self.module_info)
    103                 site.logger.info('index created.')
     103                site.logger.info('Index created.')
    104104            except KeyError: #, DuplicationError:
    105                 site.logger.info('index `%s` already in catalog' % name)
     105                site.logger.info('Index `%s` already in catalog.' % name)
    106106                pass
    107107        site.logger.info('Catalog `%s` ready.' % self.catalog_name)
  • main/waeup.sirp/trunk/src/waeup/sirp/userscontainer.py

    r7636 r7653  
    2222from waeup.sirp.authentication import Account
    2323from waeup.sirp.interfaces import IUsersContainer
     24from waeup.sirp.utils.logger import Logger
    2425
    25 class UsersContainer(grok.Container):
     26class UsersContainer(grok.Container, Logger):
    2627    """A container for principals.
    2728
     
    4243                             description=description,
    4344                             email=email, phone=phone, roles=roles)
     45        self.logger.info('User account %s added.' % name)
    4446
    4547    def addAccount(self, account):
     
    4749        """
    4850        self[account.name] = account
     51        self.logger.info('User account %s added.' % account.name)
    4952
    5053    def delUser(self, name):
     
    5558        if name in self.keys():
    5659            del self[name]
     60            self.logger.info('User account %s deleted.' % name)
Note: See TracChangeset for help on using the changeset viewer.