##// END OF EJS Templates
apps: cleanup imports
marcink -
r2080:1eba6b1f default
parent child Browse files
Show More
@@ -25,7 +25,7 b' import formencode'
25 import formencode.htmlfill
25 import formencode.htmlfill
26 import peppercorn
26 import peppercorn
27
27
28 from pyramid.httpexceptions import HTTPNotFound, HTTPForbidden, HTTPFound
28 from pyramid.httpexceptions import HTTPNotFound, HTTPFound
29 from pyramid.view import view_config
29 from pyramid.view import view_config
30 from pyramid.renderers import render
30 from pyramid.renderers import render
31 from pyramid.response import Response
31 from pyramid.response import Response
@@ -25,8 +25,8 b' from pyramid.view import view_config'
25
25
26 from rhodecode.apps._base import BaseAppView
26 from rhodecode.apps._base import BaseAppView
27 from rhodecode.lib import helpers as h
27 from rhodecode.lib import helpers as h
28 from rhodecode.lib.auth import LoginRequired, NotAnonymous, \
28 from rhodecode.lib.auth import (
29 HasRepoGroupPermissionAnyDecorator
29 LoginRequired, NotAnonymous, HasRepoGroupPermissionAnyDecorator)
30 from rhodecode.lib.index import searcher_from_config
30 from rhodecode.lib.index import searcher_from_config
31 from rhodecode.lib.utils2 import safe_unicode, str2bool
31 from rhodecode.lib.utils2 import safe_unicode, str2bool
32 from rhodecode.lib.ext_json import json
32 from rhodecode.lib.ext_json import json
@@ -22,6 +22,7 b' import time'
22 import collections
22 import collections
23 import datetime
23 import datetime
24 import formencode
24 import formencode
25 import formencode.htmlfill
25 import logging
26 import logging
26 import urlparse
27 import urlparse
27
28
@@ -22,6 +22,7 b' import logging'
22 import datetime
22 import datetime
23
23
24 import formencode
24 import formencode
25 import formencode.htmlfill
25 from pyramid.httpexceptions import HTTPFound
26 from pyramid.httpexceptions import HTTPFound
26 from pyramid.view import view_config
27 from pyramid.view import view_config
27 from pyramid.renderers import render
28 from pyramid.renderers import render
@@ -33,8 +34,8 b' from rhodecode.lib import helpers as h'
33 from rhodecode.lib import audit_logger
34 from rhodecode.lib import audit_logger
34 from rhodecode.lib.ext_json import json
35 from rhodecode.lib.ext_json import json
35 from rhodecode.lib.auth import LoginRequired, NotAnonymous, CSRFRequired
36 from rhodecode.lib.auth import LoginRequired, NotAnonymous, CSRFRequired
36 from rhodecode.lib.channelstream import channelstream_request, \
37 from rhodecode.lib.channelstream import (
37 ChannelstreamException
38 channelstream_request, ChannelstreamException)
38 from rhodecode.lib.utils2 import safe_int, md5, str2bool
39 from rhodecode.lib.utils2 import safe_int, md5, str2bool
39 from rhodecode.model.auth_token import AuthTokenModel
40 from rhodecode.model.auth_token import AuthTokenModel
40 from rhodecode.model.comment import CommentsModel
41 from rhodecode.model.comment import CommentsModel
@@ -24,8 +24,8 b' from pyramid.httpexceptions import HTTPF'
24 from pyramid.view import view_config
24 from pyramid.view import view_config
25
25
26 from rhodecode.apps._base import RepoAppView
26 from rhodecode.apps._base import RepoAppView
27 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator, \
27 from rhodecode.lib.auth import (
28 CSRFRequired
28 LoginRequired, HasRepoPermissionAnyDecorator, CSRFRequired)
29 from rhodecode.lib import helpers as h
29 from rhodecode.lib import helpers as h
30 from rhodecode.model.meta import Session
30 from rhodecode.model.meta import Session
31 from rhodecode.model.scm import ScmModel
31 from rhodecode.model.scm import ScmModel
@@ -26,7 +26,6 b' from pyramid.view import view_config'
26 from pyramid.renderers import render
26 from pyramid.renderers import render
27 from pyramid.response import Response
27 from pyramid.response import Response
28
28
29
30 from rhodecode.apps._base import RepoAppView
29 from rhodecode.apps._base import RepoAppView
31 from rhodecode.controllers.utils import parse_path_ref, get_commit_from_ref_name
30 from rhodecode.controllers.utils import parse_path_ref, get_commit_from_ref_name
32 from rhodecode.lib import helpers as h
31 from rhodecode.lib import helpers as h
@@ -21,19 +21,19 b''
21 import logging
21 import logging
22 import datetime
22 import datetime
23 import formencode
23 import formencode
24 from pyramid.httpexceptions import HTTPNotFound, HTTPBadRequest, HTTPFound
24 import formencode.htmlfill
25
26 from pyramid.httpexceptions import HTTPFound
25 from pyramid.view import view_config
27 from pyramid.view import view_config
26 from pyramid.renderers import render
28 from pyramid.renderers import render
27 from pyramid.response import Response
29 from pyramid.response import Response
28
30
29 from rhodecode.apps._base import RepoAppView, DataGridAppView
31 from rhodecode.apps._base import RepoAppView, DataGridAppView
30
31 from rhodecode.lib.auth import (
32 from rhodecode.lib.auth import (
32 LoginRequired, HasRepoPermissionAnyDecorator, NotAnonymous,
33 LoginRequired, HasRepoPermissionAnyDecorator, NotAnonymous,
33 HasRepoPermissionAny, HasPermissionAnyDecorator, CSRFRequired)
34 HasRepoPermissionAny, HasPermissionAnyDecorator, CSRFRequired)
34 import rhodecode.lib.helpers as h
35 import rhodecode.lib.helpers as h
35 from rhodecode.model.db import (
36 from rhodecode.model.db import coalesce, or_, Repository, RepoGroup
36 coalesce, or_, Repository, RepoGroup, UserFollowing, User)
37 from rhodecode.model.repo import RepoModel
37 from rhodecode.model.repo import RepoModel
38 from rhodecode.model.forms import RepoForkForm
38 from rhodecode.model.forms import RepoForkForm
39 from rhodecode.model.scm import ScmModel, RepoGroupList
39 from rhodecode.model.scm import ScmModel, RepoGroupList
@@ -22,6 +22,7 b' import logging'
22 import collections
22 import collections
23
23
24 import formencode
24 import formencode
25 import formencode.htmlfill
25 import peppercorn
26 import peppercorn
26 from pyramid.httpexceptions import (
27 from pyramid.httpexceptions import (
27 HTTPFound, HTTPNotFound, HTTPForbidden, HTTPBadRequest)
28 HTTPFound, HTTPNotFound, HTTPForbidden, HTTPBadRequest)
@@ -21,6 +21,7 b''
21 import logging
21 import logging
22
22
23 import formencode
23 import formencode
24 import formencode.htmlfill
24
25
25 from pyramid.httpexceptions import HTTPFound
26 from pyramid.httpexceptions import HTTPFound
26 from pyramid.view import view_config
27 from pyramid.view import view_config
@@ -21,6 +21,7 b''
21 import logging
21 import logging
22
22
23 import formencode
23 import formencode
24 import formencode.htmlfill
24 from pyramid.httpexceptions import HTTPFound, HTTPBadRequest
25 from pyramid.httpexceptions import HTTPFound, HTTPBadRequest
25 from pyramid.response import Response
26 from pyramid.response import Response
26 from pyramid.renderers import render
27 from pyramid.renderers import render
@@ -26,7 +26,7 b' from webhelpers.util import update_param'
26 from rhodecode.apps._base import BaseAppView, RepoAppView
26 from rhodecode.apps._base import BaseAppView, RepoAppView
27 from rhodecode.lib.auth import (LoginRequired, HasRepoPermissionAnyDecorator)
27 from rhodecode.lib.auth import (LoginRequired, HasRepoPermissionAnyDecorator)
28 from rhodecode.lib.helpers import Page
28 from rhodecode.lib.helpers import Page
29 from rhodecode.lib.utils2 import safe_str, safe_int
29 from rhodecode.lib.utils2 import safe_str
30 from rhodecode.lib.index import searcher_from_config
30 from rhodecode.lib.index import searcher_from_config
31 from rhodecode.model import validation_schema
31 from rhodecode.model import validation_schema
32 from rhodecode.model.validation_schema.schemas import search_schema
32 from rhodecode.model.validation_schema.schemas import search_schema
General Comments 0
You need to be logged in to leave comments. Login now