Show More
@@ -3,7 +3,8 b'' | |||||
3 | package.rhodecode.controllers.admin.admin |
|
3 | package.rhodecode.controllers.admin.admin | |
4 | ~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
6 |
Controller for Admin pan |
|
6 | Controller for Admin panel of Rhodecode | |
|
7 | ||||
7 | :created_on: Apr 7, 2010 |
|
8 | :created_on: Apr 7, 2010 | |
8 | :author: marcink |
|
9 | :author: marcink | |
9 | :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> |
|
10 | :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> |
@@ -144,7 +144,13 b' class ScmModel(BaseModel):' | |||||
144 | tmp_d['tip'] = tip.raw_id |
|
144 | tmp_d['tip'] = tip.raw_id | |
145 | tmp_d['tip_sort'] = tip.revision |
|
145 | tmp_d['tip_sort'] = tip.revision | |
146 | tmp_d['rev'] = tip.revision |
|
146 | tmp_d['rev'] = tip.revision | |
147 | tmp_d['contact'] = repo.dbrepo.user.full_contact |
|
147 | ||
|
148 | #dirty hack for some problems | |||
|
149 | usr = repo.dbrepo.user | |||
|
150 | if isinstance(usr, basestring): | |||
|
151 | usr = UserModel(self.sa).get_by_username(repo.dbrepo.user) | |||
|
152 | ||||
|
153 | tmp_d['contact'] = usr.full_contact | |||
148 | tmp_d['contact_sort'] = tmp_d['contact'] |
|
154 | tmp_d['contact_sort'] = tmp_d['contact'] | |
149 | tmp_d['repo_archives'] = list(repo._get_archives()) |
|
155 | tmp_d['repo_archives'] = list(repo._get_archives()) | |
150 | tmp_d['last_msg'] = tip.message |
|
156 | tmp_d['last_msg'] = tip.message |
General Comments 0
You need to be logged in to leave comments.
Login now