Changeset - 81ca8a76d055
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 15 years ago 2010-12-09 22:20:18
marcin@python-works.com
dirty fix for issue #87
2 files changed with 9 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/admin.py
Show inline comments
 
# -*- coding: utf-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 <marcin@python-works.com>    
 
    :license: GPLv3, see COPYING for more details.
 
"""
 
# This program is free software; you can redistribute it and/or
rhodecode/model/scm.py
Show inline comments
 
@@ -141,13 +141,19 @@ class ScmModel(BaseModel):
 
                tmp_d['description_sort'] = tmp_d['description']
 
                tmp_d['last_change'] = last_change
 
                tmp_d['last_change_sort'] = time.mktime(last_change.timetuple())
 
                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
 
                tmp_d['repo'] = repo
 
                yield tmp_d
 

	
0 comments (0 inline, 0 general)