comparison rhodecode/lib/helpers.py @ 3382:b8cb1fe622e9 beta

don't use global pylons config
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 12 Feb 2013 17:03:10 +0100
parents 7000fc4aa569
children d21c762f5c4b
comparison
equal deleted inserted replaced
3381:c48a3381b037 3382:b8cb1fe622e9
1049 1049
1050 # urlify changesets - extrac revisions and make link out of them 1050 # urlify changesets - extrac revisions and make link out of them
1051 newtext = urlify_changesets(escaper(text_), repository) 1051 newtext = urlify_changesets(escaper(text_), repository)
1052 1052
1053 try: 1053 try:
1054 conf = config['app_conf'] 1054 from rhodecode import CONFIG
1055 conf = CONFIG
1055 1056
1056 # allow multiple issue servers to be used 1057 # allow multiple issue servers to be used
1057 valid_indices = [ 1058 valid_indices = [
1058 x.group(1) 1059 x.group(1)
1059 for x in map(lambda x: re.match(r'issue_pat(.*)', x), conf.keys()) 1060 for x in map(lambda x: re.match(r'issue_pat(.*)', x), conf.keys())