diff pylons_app/lib/helpers.py @ 466:dee0e7eb0370

removed decodes, thus it should be implemented on vcs side fixed bug on annotation links in helpers
author *** failed to import extension hggit: No module named hggit
date Thu, 26 Aug 2010 22:09:55 +0200
parents b1debb6c5a09
children 0d4fceb91c9c
line wrap: on
line diff
--- a/pylons_app/lib/helpers.py	Thu Aug 26 17:29:26 2010 +0200
+++ b/pylons_app/lib/helpers.py	Thu Aug 26 22:09:55 2010 +0200
@@ -220,7 +220,8 @@
     pygmentize function using pygments
     @param filenode:
     """
-    return literal(code_highlight(filenode.content, filenode.lexer, HtmlFormatter(**kwargs)))
+    return literal(code_highlight(filenode.content, 
+                                  filenode.lexer, HtmlFormatter(**kwargs)))
 
 def pygmentize_annotation(filenode, **kwargs):
     """
@@ -241,7 +242,8 @@
         return "color: rgb(%s) ! important;" % (', '.join(col))
         
     def url_func(changeset):
-        tooltip_html = "<div style='font-size:0.8em'><b>Author:</b> %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>" 
+        tooltip_html = "<div style='font-size:0.8em'><b>Author:</b>"+\
+        " %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>" 
         
         tooltip_html = tooltip_html % (changeset.author,
                                                changeset.date,
@@ -250,7 +252,7 @@
                                  changeset.raw_id)
         uri = link_to(
                 lnk_format,
-                url('changeset_home', repo_name='test',
+                url('changeset_home', repo_name=changeset.repository.name,
                     revision=changeset.raw_id),
                 style=get_color_string(changeset.raw_id),
                 class_='tooltip',