diff rhodecode/lib/helpers.py @ 1933:3da456a3a211 beta

changed default issue tracker links pattern
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 21 Jan 2012 00:55:09 +0200
parents 7314e8384b1b
children 5fc9c92025c1
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py	Fri Jan 20 23:31:05 2012 +0200
+++ b/rhodecode/lib/helpers.py	Sat Jan 21 00:55:09 2012 +0200
@@ -788,7 +788,7 @@
     try:
         conf = config['app_conf']
 
-        URL_PAT = re.compile(r'%s' % conf.get('url_pat'))
+        URL_PAT = re.compile(r'%s' % conf.get('issue_pat'))
 
         if URL_PAT:
             ISSUE_SERVER_LNK = conf.get('issue_server_link')
@@ -799,7 +799,7 @@
                 if match_obj.group().startswith(' '):
                     pref = ' '
 
-                issue_id = match_obj.groups()[0]
+                issue_id = ''.join(match_obj.groups())
                 tmpl = (
                 '%(pref)s<a class="%(cls)s" href="%(url)s">'
                 '%(issue-prefix)s%(id-repr)s'