comparison rhodecode/model/scm.py @ 825:81ca8a76d055 beta

dirty fix for issue #87
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 09 Dec 2010 22:20:18 +0100
parents bb35ad076e2f
children f78f4b8052e2
comparison
equal deleted inserted replaced
824:ceb9f419b7fe 825:81ca8a76d055
142 tmp_d['last_change'] = last_change 142 tmp_d['last_change'] = last_change
143 tmp_d['last_change_sort'] = time.mktime(last_change.timetuple()) 143 tmp_d['last_change_sort'] = time.mktime(last_change.timetuple())
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
151 tmp_d['repo'] = repo 157 tmp_d['repo'] = repo
152 yield tmp_d 158 yield tmp_d