comparison pylons_app/controllers/summary.py @ 421:cbfb853a0a4c

fixed bug when author had " in name, thus breaking the javascript data format small fix to css for commit messages, and fixed a bug when message had some special chars that caused unicodeDecode error
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 23 Aug 2010 21:39:17 +0200
parents 9a7ae16ff53e
children dee0e7eb0370
comparison
equal deleted inserted replaced
420:a6000c18a8db 421:cbfb853a0a4c
82 c.ts_max = mktime((y, m, d, 0, 0, 0, 0, 0, 0,)) 82 c.ts_max = mktime((y, m, d, 0, 0, 0, 0, 0, 0,))
83 83
84 84
85 def author_key_cleaner(k): 85 def author_key_cleaner(k):
86 k = person(k) 86 k = person(k)
87 k = k.replace('"', "'") #for js data compatibilty
87 return k 88 return k
88 89
89 for cs in repo: 90 for cs in repo:
90 k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1], 91 k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1],
91 cs.date.timetuple()[2]) 92 cs.date.timetuple()[2])