Changeset 7653
- Timestamp:
- 15 Feb 2012, 11:03:57 (13 years ago)
- 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 99 99 for name, index in self.indexes.items(): 100 100 try: 101 site.logger.info('Create index `%s` in catalog ' % name)101 site.logger.info('Create index `%s` in catalog.' % name) 102 102 index.setup(catalog, name, self.context, self.module_info) 103 site.logger.info(' index created.')103 site.logger.info('Index created.') 104 104 except KeyError: #, DuplicationError: 105 site.logger.info(' index `%s` already in catalog' % name)105 site.logger.info('Index `%s` already in catalog.' % name) 106 106 pass 107 107 site.logger.info('Catalog `%s` ready.' % self.catalog_name) -
main/waeup.sirp/trunk/src/waeup/sirp/userscontainer.py
r7636 r7653 22 22 from waeup.sirp.authentication import Account 23 23 from waeup.sirp.interfaces import IUsersContainer 24 from waeup.sirp.utils.logger import Logger 24 25 25 class UsersContainer(grok.Container ):26 class UsersContainer(grok.Container, Logger): 26 27 """A container for principals. 27 28 … … 42 43 description=description, 43 44 email=email, phone=phone, roles=roles) 45 self.logger.info('User account %s added.' % name) 44 46 45 47 def addAccount(self, account): … … 47 49 """ 48 50 self[account.name] = account 51 self.logger.info('User account %s added.' % account.name) 49 52 50 53 def delUser(self, name): … … 55 58 if name in self.keys(): 56 59 del self[name] 60 self.logger.info('User account %s deleted.' % name)
Note: See TracChangeset for help on using the changeset viewer.