Commit
54b6287bb32fcbfb75279050d8c0962d01b457da
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
Breaking utils into files
1
| |
1
| |
2
| from django.conf import settings |
2
| from django.conf import settings |
3
| |
3
| |
4
| -from ..utils import ColabProxyView |
4
| +from ..utils.views import ColabProxyView |
5
| |
5
| |
6
| |
6
| |
7
| class GitlabProxyView(ColabProxyView): |
7
| class GitlabProxyView(ColabProxyView): |
1
| |
1
| |
2
| from django.conf import settings |
2
| from django.conf import settings |
3
| |
3
| |
4
| -from ..utils import ColabProxyView |
4
| +from ..utils.views import ColabProxyView |
5
| |
5
| |
6
| |
6
| |
7
| class JenkinsProxyView(ColabProxyView): |
7
| class JenkinsProxyView(ColabProxyView): |
1
| |
1
| |
2
| from django.conf import settings |
2
| from django.conf import settings |
3
| |
3
| |
4
| -from ..utils import ColabProxyView |
4
| +from ..utils.views import ColabProxyView |
5
| |
5
| |
6
| |
6
| |
7
| class RedmineProxyView(ColabProxyView): |
7
| class RedmineProxyView(ColabProxyView): |
| @@ -3,7 +3,7 @@ from django.conf import settings |
| @@ -3,7 +3,7 @@ from django.conf import settings |
3
| |
3
| |
4
| from hitcounter.views import HitCounterViewMixin |
4
| from hitcounter.views import HitCounterViewMixin |
5
| |
5
| |
6
| -from ..utils import ColabProxyView |
6
| +from ..utils.views import ColabProxyView |
7
| from .models import Wiki, Ticket, Revision |
7
| from .models import Wiki, Ticket, Revision |
8
| |
8
| |
9
| |
9
| |
| @@ -1,10 +0,0 @@ |
| @@ -1,10 +0,0 @@ |
1
| - |
| |
2
| -from django.conf import settings |
| |
3
| - |
| |
4
| -from revproxy.views import ProxyView |
| |
5
| - |
| |
6
| - |
| |
7
| -class ColabProxyView(ProxyView): |
| |
8
| - add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| |
9
| - diazo_theme_template = 'base.html' |
| |
10
| - html5 = True |
| |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| + |
| |
2
| +from django.conf import settings |
| |
3
| + |
| |
4
| +from revproxy.views import ProxyView |
| |
5
| + |
| |
6
| + |
| |
7
| +class ColabProxyView(ProxyView): |
| |
8
| + add_remote_user = settings.REVPROXY_ADD_REMOTE_USER |
| |
9
| + diazo_theme_template = 'base.html' |
| |
10
| + html5 = True |