Commit 016dd3f60452b079e92db0a8b82deb6ba7d5dcd4
1 parent
46211987
Exists in
master
and in
39 other branches
Fixing rules loader
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/proxy/views.py
| ... | ... | @@ -6,14 +6,19 @@ from django.conf import settings |
| 6 | 6 | from revproxy.views import ProxyView |
| 7 | 7 | |
| 8 | 8 | |
| 9 | +CWD = os.path.abspath(os.path.dirname(__file__)) | |
| 10 | +DIAZO_RULES_DIR = os.path.join(CWD, 'diazo') | |
| 11 | + | |
| 12 | + | |
| 9 | 13 | class TracProxyView(ProxyView): |
| 10 | 14 | base_url = settings.COLAB_TRAC_URL |
| 11 | 15 | add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| 12 | 16 | diazo_theme_template = 'base.html' |
| 13 | - diazo_rules = os.path.join(settings.BASE_DIR, 'proxy', 'trac_rules.xml') | |
| 17 | + diazo_rules = os.path.join(DIAZO_RULES_DIR, 'trac.xml') | |
| 14 | 18 | |
| 15 | 19 | |
| 16 | 20 | class JenkinsProxyView(ProxyView): |
| 17 | 21 | base_url = settings.COLAB_CI_URL |
| 18 | 22 | add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| 19 | 23 | diazo_theme_template = 'base.html' |
| 24 | + diazo_rules = os.path.join(DIAZO_RULES_DIR, 'jenkins.xml') | ... | ... |