Commit
1d92158ca876a2805a4f46ab5f7984e941a271c3
Exists in
master
and in
39 other branches
1.12.x, add_requests_as_dep, celery_service, change-passwd-signal, check-port, colab-signals, colab-vcard, colab_search, colab_tag, colab_tag_merge, community_association, detach_super_archives, fix-dashboard, fix-message-preview, fix_app_label, fix_cache_count_spb, fix_header, fixed_gitlab_import, go_to_profile_panel, header_footer, layout-fix, mobile_user_scalable, move_out_plugins, paginate-threads, profile_integration, refactor-data-import, remove-gitlab-plugin, removing_namespace, search_block, search_filters, spb-release/3.0, split_screen, stable, startplugin, timestamp_plugins, translation_review, user_regex, validate-passwd, workin_whoosh_temp
Moved gitlab, jenkins and redmine to django apps
Showing
22 changed files
with
83 additions
and
55 deletions
Show diff stats
| @@ -1,3 +0,0 @@ |
| @@ -1,3 +0,0 @@ |
1
| -from django.contrib import admin |
| |
2
| - |
| |
3
| -# Register your models here. |
| |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.contrib import admin |
| |
2
| + |
| |
3
| +# Register your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.db import models |
| |
2
| + |
| |
3
| +# Create your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.test import TestCase |
| |
2
| + |
| |
3
| +# Create your tests here. |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| + |
| |
2
| +from django.conf.urls import patterns, url |
| |
3
| + |
| |
4
| +from .views import GitlabProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +urlpatterns = patterns('', |
| |
8
| + # Gitlab URLs |
| |
9
| + url(r'^gitlab/(?P<path>.*)$', GitlabProxyView.as_view()), |
| |
10
| +) |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| + |
| |
2
| +from django.conf import settings |
| |
3
| + |
| |
4
| +from ..utils import ColabProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +class GitlabProxyView(ColabProxyView): |
| |
8
| + upstream = settings.COLAB_GITLAB_URL |
| |
9
| + diazo_theme_template = 'proxy/gitlab.html' |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.contrib import admin |
| |
2
| + |
| |
3
| +# Register your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.db import models |
| |
2
| + |
| |
3
| +# Create your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.test import TestCase |
| |
2
| + |
| |
3
| +# Create your tests here. |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| + |
| |
2
| +from django.conf.urls import patterns, url |
| |
3
| + |
| |
4
| +from .views import JenkinsProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +urlpatterns = patterns('', |
| |
8
| + # Jenkins URLs |
| |
9
| + url(r'^ci/(?P<path>.*)$', JenkinsProxyView.as_view()), |
| |
10
| +) |
| @@ -0,0 +1,8 @@ |
| @@ -0,0 +1,8 @@ |
| |
1
| + |
| |
2
| +from django.conf import settings |
| |
3
| + |
| |
4
| +from ..utils import ColabProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +class JenkinsProxyView(ColabProxyView): |
| |
8
| + upstream = settings.COLAB_CI_URL |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.contrib import admin |
| |
2
| + |
| |
3
| +# Register your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.db import models |
| |
2
| + |
| |
3
| +# Create your models here. |
| @@ -0,0 +1,3 @@ |
| @@ -0,0 +1,3 @@ |
| |
1
| +from django.test import TestCase |
| |
2
| + |
| |
3
| +# Create your tests here. |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| + |
| |
2
| +from django.conf.urls import patterns, url |
| |
3
| + |
| |
4
| +from .views import RedmineProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +urlpatterns = patterns('', |
| |
8
| + # RedmineProxyView URLs |
| |
9
| + url(r'^redmine/(?P<path>.*)$', RedmineProxyView.as_view()), |
| |
10
| +) |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| + |
| |
2
| +from django.conf import settings |
| |
3
| + |
| |
4
| +from ..utils import ColabProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +class RedmineProxyView(ColabProxyView): |
| |
8
| + upstream = settings.COLAB_REDMINE_URL |
| |
9
| + diazo_theme_template = 'proxy/redmine.html' |
| @@ -1,3 +0,0 @@ |
| @@ -1,3 +0,0 @@ |
1
| -from django.test import TestCase |
| |
2
| - |
| |
3
| -# Create your tests here. |
| |
| @@ -1,16 +0,0 @@ |
| @@ -1,16 +0,0 @@ |
1
| - |
| |
2
| -from django.conf.urls import patterns, include, url |
| |
3
| - |
| |
4
| -from .views import JenkinsProxyView, GitlabProxyView, RedmineProxyView |
| |
5
| - |
| |
6
| - |
| |
7
| -urlpatterns = patterns('', |
| |
8
| - # Jenkins URLs |
| |
9
| - url(r'^ci/(?P<path>.*)$', JenkinsProxyView.as_view()), |
| |
10
| - |
| |
11
| - # Gitlab |
| |
12
| - url(r'^gitlab/(?P<path>.*)$', GitlabProxyView.as_view()), |
| |
13
| - |
| |
14
| - # Redmine |
| |
15
| - url(r'^redmine/(?P<path>.*)$', RedmineProxyView.as_view()) |
| |
16
| -) |
| |
| @@ -1,33 +0,0 @@ |
| @@ -1,33 +0,0 @@ |
1
| - |
| |
2
| -import os |
| |
3
| - |
| |
4
| -from django.conf import settings |
| |
5
| - |
| |
6
| -from revproxy.views import ProxyView |
| |
7
| - |
| |
8
| - |
| |
9
| -CWD = os.path.abspath(os.path.dirname(__file__)) |
| |
10
| -DIAZO_RULES_DIR = os.path.join(CWD, 'diazo') |
| |
11
| - |
| |
12
| - |
| |
13
| -class JenkinsProxyView(ProxyView): |
| |
14
| - base_url = settings.COLAB_CI_URL |
| |
15
| - add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| |
16
| - diazo_theme_template = 'base.html' |
| |
17
| - diazo_rules = os.path.join(DIAZO_RULES_DIR, 'jenkins.xml') |
| |
18
| - html5 = True |
| |
19
| - |
| |
20
| -class GitlabProxyView(ProxyView): |
| |
21
| - base_url = settings.COLAB_GITLAB_URL |
| |
22
| - add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| |
23
| - diazo_theme_template = 'proxy/gitlab.html' |
| |
24
| - diazo_rules = os.path.join(DIAZO_RULES_DIR, 'gitlab.xml') |
| |
25
| - html5 = True |
| |
26
| - |
| |
27
| -class RedmineProxyView(ProxyView): |
| |
28
| - base_url = settings.COLAB_REDMINE_URL |
| |
29
| - add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| |
30
| - diazo_theme_template = 'proxy/redmine.html' |
| |
31
| - diazo_rules = os.path.join(DIAZO_RULES_DIR, 'redmine.xml') |
| |
32
| - html5 = True |
| |
33
| - |
| |