diff --git a/rhodecode/controllers/admin/admin.py b/rhodecode/controllers/admin/admin.py --- a/rhodecode/controllers/admin/admin.py +++ b/rhodecode/controllers/admin/admin.py @@ -3,7 +3,8 @@ package.rhodecode.controllers.admin.admin ~~~~~~~~~~~~~~ - Controller for Admin pannel of Rhodecode + Controller for Admin panel of Rhodecode + :created_on: Apr 7, 2010 :author: marcink :copyright: (C) 2009-2010 Marcin Kuzminski diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -144,7 +144,13 @@ class ScmModel(BaseModel): tmp_d['tip'] = tip.raw_id tmp_d['tip_sort'] = tip.revision tmp_d['rev'] = tip.revision - tmp_d['contact'] = repo.dbrepo.user.full_contact + + #dirty hack for some problems + usr = repo.dbrepo.user + if isinstance(usr, basestring): + usr = UserModel(self.sa).get_by_username(repo.dbrepo.user) + + tmp_d['contact'] = usr.full_contact tmp_d['contact_sort'] = tmp_d['contact'] tmp_d['repo_archives'] = list(repo._get_archives()) tmp_d['last_msg'] = tip.message