comparison pylons_app/lib/helpers.py @ 284:ed7abf925696

#4: changes proposed by feedback to annotation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 13 Jun 2010 16:27:19 +0200
parents 0e5455fda8fd
children cd2ee462fc2c
comparison
equal deleted inserted replaced
283:7ec4463b6e53 284:ed7abf925696
82 color_dict[cs] = gen_color() 82 color_dict[cs] = gen_color()
83 col = color_dict[cs] 83 col = color_dict[cs]
84 return "color: rgb(%s) ! important;" % (','.join(col)) 84 return "color: rgb(%s) ! important;" % (','.join(col))
85 85
86 def url_func(changeset): 86 def url_func(changeset):
87 return '%s\n' % (link_to(changeset.raw_id, 87 return '%s\n' % (link_to('r%s:%s' % (changeset.revision, changeset.raw_id),
88 url('changeset_home', repo_name='test', revision=changeset.raw_id), 88 url('changeset_home', repo_name='test', revision=changeset.raw_id),
89 title=_('author') + ':%s rev:%s %s' % (changeset.author, changeset.revision, 89 title=_('author') + ':%s - %s' % (changeset.author, changeset.message,),
90 changeset.message,),
91 style=get_color_string(changeset.raw_id))) 90 style=get_color_string(changeset.raw_id)))
92 91
93 return literal(annotate_highlight(filenode, url_func, **kwargs)) 92 return literal(annotate_highlight(filenode, url_func, **kwargs))
94 93
95 def recursive_replace(str, replace=' '): 94 def recursive_replace(str, replace=' '):