##// END OF EJS Templates
pyramid-admin: use new base app view in exchange of dedicated admin view....
marcink -
r1511:13903a13 default
parent child Browse files
Show More
@@ -24,7 +24,7 b' import logging'
24 24 from pylons import tmpl_context as c
25 25 from pyramid.view import view_config
26 26
27 from rhodecode.apps.admin.views.base import AdminSettingsView
27 from rhodecode.apps._base import BaseAppView
28 28 from rhodecode.apps.admin.navigation import navigation_list
29 29 from rhodecode.lib.auth import (LoginRequired, HasPermissionAllDecorator)
30 30 from rhodecode.lib.utils import read_opensource_licenses
@@ -32,7 +32,7 b' from rhodecode.lib.utils import read_ope'
32 32 log = logging.getLogger(__name__)
33 33
34 34
35 class OpenSourceLicensesAdminSettingsView(AdminSettingsView):
35 class OpenSourceLicensesAdminSettingsView(BaseAppView):
36 36
37 37 @LoginRequired()
38 38 @HasPermissionAllDecorator('hg.admin')
@@ -24,9 +24,7 b' from pylons import tmpl_context as c'
24 24 from pyramid.view import view_config
25 25 from pyramid.httpexceptions import HTTPFound
26 26
27 from rhodecode.translation import _
28
29 from rhodecode.apps.admin.views.base import AdminSettingsView
27 from rhodecode.apps._base import BaseAppView
30 28 from rhodecode.apps.admin.navigation import navigation_list
31 29 from rhodecode.lib.auth import (
32 30 LoginRequired, HasPermissionAllDecorator, CSRFRequired)
@@ -38,7 +36,7 b' from rhodecode.lib import user_sessions'
38 36 log = logging.getLogger(__name__)
39 37
40 38
41 class AdminSessionSettingsView(AdminSettingsView):
39 class AdminSessionSettingsView(BaseAppView):
42 40
43 41 @LoginRequired()
44 42 @HasPermissionAllDecorator('hg.admin')
@@ -22,16 +22,15 b' import logging'
22 22
23 23 from pyramid.view import view_config
24 24
25 from rhodecode.apps._base import BaseAppView
25 26 from rhodecode.svn_support.utils import generate_mod_dav_svn_config
26
27 from rhodecode.apps.admin.views.base import AdminSettingsView
28 27 from rhodecode.lib.auth import (
29 28 LoginRequired, HasPermissionAllDecorator, CSRFRequired)
30 29
31 30 log = logging.getLogger(__name__)
32 31
33 32
34 class SvnConfigAdminSettingsView(AdminSettingsView):
33 class SvnConfigAdminSettingsView(BaseAppView):
35 34
36 35 @LoginRequired()
37 36 @CSRFRequired()
@@ -26,7 +26,7 b' from pylons import tmpl_context as c'
26 26 from pyramid.view import view_config
27 27
28 28 import rhodecode
29 from rhodecode.apps.admin.views.base import AdminSettingsView
29 from rhodecode.apps._base import BaseAppView
30 30 from rhodecode.apps.admin.navigation import navigation_list
31 31 from rhodecode.lib import helpers as h
32 32 from rhodecode.lib.auth import (LoginRequired, HasPermissionAllDecorator)
@@ -38,7 +38,7 b' from rhodecode.model.settings import Set'
38 38 log = logging.getLogger(__name__)
39 39
40 40
41 class AdminSystemInfoSettingsView(AdminSettingsView):
41 class AdminSystemInfoSettingsView(BaseAppView):
42 42
43 43 @staticmethod
44 44 def get_update_data(update_url):
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now