Mercurial > kallithea
comparison rhodecode/lib/dbmigrate/schema/db_1_2_0.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 | 89efedac4e6c |
children | 72c525a7e7ad |
comparison
equal
deleted
inserted
replaced
1975:9c5b33c4de4d | 1976:a76e9bacbedc |
---|---|
318 """Update user lastlogin""" | 318 """Update user lastlogin""" |
319 | 319 |
320 self.last_login = datetime.datetime.now() | 320 self.last_login = datetime.datetime.now() |
321 Session.add(self) | 321 Session.add(self) |
322 Session.commit() | 322 Session.commit() |
323 log.debug('updated user %s lastlogin', self.username) | 323 log.debug('updated user %s lastlogin' % self.username) |
324 | 324 |
325 @classmethod | 325 @classmethod |
326 def create(cls, form_data): | 326 def create(cls, form_data): |
327 from rhodecode.lib.auth import get_crypt_password | 327 from rhodecode.lib.auth import get_crypt_password |
328 | 328 |
693 | 693 |
694 repo_full_path = self.repo_full_path | 694 repo_full_path = self.repo_full_path |
695 | 695 |
696 try: | 696 try: |
697 alias = get_scm(repo_full_path)[0] | 697 alias = get_scm(repo_full_path)[0] |
698 log.debug('Creating instance of %s repository', alias) | 698 log.debug('Creating instance of %s repository' % alias) |
699 backend = get_backend(alias) | 699 backend = get_backend(alias) |
700 except VCSError: | 700 except VCSError: |
701 log.error(traceback.format_exc()) | 701 log.error(traceback.format_exc()) |
702 log.error('Perhaps this repository is in db and not in ' | 702 log.error('Perhaps this repository is in db and not in ' |
703 'filesystem run rescan repositories with ' | 703 'filesystem run rescan repositories with ' |