comparison pylons_app/model/hg_model.py @ 222:f7dadd356c79

fixed sorting of repos with big letters
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 25 May 2010 23:40:01 +0200
parents 7109d15c6813
children a83a1799480c
comparison
equal deleted inserted replaced
221:0eedbbc58ed9 222:f7dadd356c79
45 from pylons_app.lib.utils import EmptyChangeset 45 from pylons_app.lib.utils import EmptyChangeset
46 tip = EmptyChangeset() 46 tip = EmptyChangeset()
47 47
48 tmp_d = {} 48 tmp_d = {}
49 tmp_d['name'] = mercurial_repo.name 49 tmp_d['name'] = mercurial_repo.name
50 tmp_d['name_sort'] = tmp_d['name'] 50 tmp_d['name_sort'] = tmp_d['name'].lower()
51 tmp_d['description'] = mercurial_repo.description 51 tmp_d['description'] = mercurial_repo.description
52 tmp_d['description_sort'] = tmp_d['description'] 52 tmp_d['description_sort'] = tmp_d['description']
53 tmp_d['last_change'] = last_change 53 tmp_d['last_change'] = last_change
54 tmp_d['last_change_sort'] = last_change[1] - last_change[0] 54 tmp_d['last_change_sort'] = last_change[1] - last_change[0]
55 tmp_d['tip'] = tip.raw_id 55 tmp_d['tip'] = tip.raw_id