apps: cleanup imports
This commit is contained in:
parent
e8fe72ebfb
commit
87a5eb4bde
11 changed files with 17 additions and 13 deletions
|
|
@ -25,7 +25,7 @@ import formencode
|
|||
import formencode.htmlfill
|
||||
import peppercorn
|
||||
|
||||
from pyramid.httpexceptions import HTTPNotFound, HTTPForbidden, HTTPFound
|
||||
from pyramid.httpexceptions import HTTPNotFound, HTTPFound
|
||||
from pyramid.view import view_config
|
||||
from pyramid.renderers import render
|
||||
from pyramid.response import Response
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ from pyramid.view import view_config
|
|||
|
||||
from rhodecode.apps._base import BaseAppView
|
||||
from rhodecode.lib import helpers as h
|
||||
from rhodecode.lib.auth import LoginRequired, NotAnonymous, \
|
||||
HasRepoGroupPermissionAnyDecorator
|
||||
from rhodecode.lib.auth import (
|
||||
LoginRequired, NotAnonymous, HasRepoGroupPermissionAnyDecorator)
|
||||
from rhodecode.lib.index import searcher_from_config
|
||||
from rhodecode.lib.utils2 import safe_unicode, str2bool
|
||||
from rhodecode.lib.ext_json import json
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import time
|
|||
import collections
|
||||
import datetime
|
||||
import formencode
|
||||
import formencode.htmlfill
|
||||
import logging
|
||||
import urlparse
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import logging
|
|||
import datetime
|
||||
|
||||
import formencode
|
||||
import formencode.htmlfill
|
||||
from pyramid.httpexceptions import HTTPFound
|
||||
from pyramid.view import view_config
|
||||
from pyramid.renderers import render
|
||||
|
|
@ -33,8 +34,8 @@ from rhodecode.lib import helpers as h
|
|||
from rhodecode.lib import audit_logger
|
||||
from rhodecode.lib.ext_json import json
|
||||
from rhodecode.lib.auth import LoginRequired, NotAnonymous, CSRFRequired
|
||||
from rhodecode.lib.channelstream import channelstream_request, \
|
||||
ChannelstreamException
|
||||
from rhodecode.lib.channelstream import (
|
||||
channelstream_request, ChannelstreamException)
|
||||
from rhodecode.lib.utils2 import safe_int, md5, str2bool
|
||||
from rhodecode.model.auth_token import AuthTokenModel
|
||||
from rhodecode.model.comment import CommentsModel
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ from pyramid.httpexceptions import HTTPFound
|
|||
from pyramid.view import view_config
|
||||
|
||||
from rhodecode.apps._base import RepoAppView
|
||||
from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator, \
|
||||
CSRFRequired
|
||||
from rhodecode.lib.auth import (
|
||||
LoginRequired, HasRepoPermissionAnyDecorator, CSRFRequired)
|
||||
from rhodecode.lib import helpers as h
|
||||
from rhodecode.model.meta import Session
|
||||
from rhodecode.model.scm import ScmModel
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ from pyramid.view import view_config
|
|||
from pyramid.renderers import render
|
||||
from pyramid.response import Response
|
||||
|
||||
|
||||
from rhodecode.apps._base import RepoAppView
|
||||
from rhodecode.controllers.utils import parse_path_ref, get_commit_from_ref_name
|
||||
from rhodecode.lib import helpers as h
|
||||
|
|
|
|||
|
|
@ -21,19 +21,19 @@
|
|||
import logging
|
||||
import datetime
|
||||
import formencode
|
||||
from pyramid.httpexceptions import HTTPNotFound, HTTPBadRequest, HTTPFound
|
||||
import formencode.htmlfill
|
||||
|
||||
from pyramid.httpexceptions import HTTPFound
|
||||
from pyramid.view import view_config
|
||||
from pyramid.renderers import render
|
||||
from pyramid.response import Response
|
||||
|
||||
from rhodecode.apps._base import RepoAppView, DataGridAppView
|
||||
|
||||
from rhodecode.lib.auth import (
|
||||
LoginRequired, HasRepoPermissionAnyDecorator, NotAnonymous,
|
||||
HasRepoPermissionAny, HasPermissionAnyDecorator, CSRFRequired)
|
||||
import rhodecode.lib.helpers as h
|
||||
from rhodecode.model.db import (
|
||||
coalesce, or_, Repository, RepoGroup, UserFollowing, User)
|
||||
from rhodecode.model.db import coalesce, or_, Repository, RepoGroup
|
||||
from rhodecode.model.repo import RepoModel
|
||||
from rhodecode.model.forms import RepoForkForm
|
||||
from rhodecode.model.scm import ScmModel, RepoGroupList
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import logging
|
|||
import collections
|
||||
|
||||
import formencode
|
||||
import formencode.htmlfill
|
||||
import peppercorn
|
||||
from pyramid.httpexceptions import (
|
||||
HTTPFound, HTTPNotFound, HTTPForbidden, HTTPBadRequest)
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
import logging
|
||||
|
||||
import formencode
|
||||
import formencode.htmlfill
|
||||
|
||||
from pyramid.httpexceptions import HTTPFound
|
||||
from pyramid.view import view_config
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
import logging
|
||||
|
||||
import formencode
|
||||
import formencode.htmlfill
|
||||
from pyramid.httpexceptions import HTTPFound, HTTPBadRequest
|
||||
from pyramid.response import Response
|
||||
from pyramid.renderers import render
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ from webhelpers.util import update_params
|
|||
from rhodecode.apps._base import BaseAppView, RepoAppView
|
||||
from rhodecode.lib.auth import (LoginRequired, HasRepoPermissionAnyDecorator)
|
||||
from rhodecode.lib.helpers import Page
|
||||
from rhodecode.lib.utils2 import safe_str, safe_int
|
||||
from rhodecode.lib.utils2 import safe_str
|
||||
from rhodecode.lib.index import searcher_from_config
|
||||
from rhodecode.model import validation_schema
|
||||
from rhodecode.model.validation_schema.schemas import search_schema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue