Mercurial > kallithea
comparison rhodecode/model/db.py @ 1976:a76e9bacbedc beta
garden
- unified logging formatting to use only %
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 02 Feb 2012 00:31:00 +0200 |
parents | 9bbde54232dc |
children | 87f0800abc7b |
comparison
equal
deleted
inserted
replaced
1975:9c5b33c4de4d | 1976:a76e9bacbedc |
---|---|
364 | 364 |
365 def update_lastlogin(self): | 365 def update_lastlogin(self): |
366 """Update user lastlogin""" | 366 """Update user lastlogin""" |
367 self.last_login = datetime.datetime.now() | 367 self.last_login = datetime.datetime.now() |
368 Session.add(self) | 368 Session.add(self) |
369 log.debug('updated user %s lastlogin', self.username) | 369 log.debug('updated user %s lastlogin' % self.username) |
370 | 370 |
371 def __json__(self): | 371 def __json__(self): |
372 return dict( | 372 return dict( |
373 email=self.email, | 373 email=self.email, |
374 full_name=self.full_name, | 374 full_name=self.full_name, |
680 | 680 |
681 def __get_instance(self): | 681 def __get_instance(self): |
682 repo_full_path = self.repo_full_path | 682 repo_full_path = self.repo_full_path |
683 try: | 683 try: |
684 alias = get_scm(repo_full_path)[0] | 684 alias = get_scm(repo_full_path)[0] |
685 log.debug('Creating instance of %s repository', alias) | 685 log.debug('Creating instance of %s repository' % alias) |
686 backend = get_backend(alias) | 686 backend = get_backend(alias) |
687 except VCSError: | 687 except VCSError: |
688 log.error(traceback.format_exc()) | 688 log.error(traceback.format_exc()) |
689 log.error('Perhaps this repository is in db and not in ' | 689 log.error('Perhaps this repository is in db and not in ' |
690 'filesystem run rescan repositories with ' | 690 'filesystem run rescan repositories with ' |