##// END OF EJS Templates
moved caching query to libs
marcink -
r1669:f522f4d3 beta
parent child Browse files
Show More
1 NO CONTENT: file renamed from rhodecode/model/caching_query.py to rhodecode/lib/caching_query.py
NO CONTENT: file renamed from rhodecode/model/caching_query.py to rhodecode/lib/caching_query.py
@@ -45,7 +45,7 b' from rhodecode.lib.exceptions import Use'
45 from rhodecode.lib.compat import json
45 from rhodecode.lib.compat import json
46
46
47 from rhodecode.model.meta import Base, Session
47 from rhodecode.model.meta import Base, Session
48 from rhodecode.model.caching_query import FromCache
48 from rhodecode.lib.caching_query import FromCache
49
49
50
50
51 log = logging.getLogger(__name__)
51 log = logging.getLogger(__name__)
@@ -43,8 +43,9 b' from vcs.utils.lazy import LazyProperty'
43 from vcs.utils.helpers import get_scm
43 from vcs.utils.helpers import get_scm
44 from vcs.exceptions import VCSError
44 from vcs.exceptions import VCSError
45
45
46 from rhodecode.lib.caching_query import FromCache
47
46 from rhodecode.model import meta
48 from rhodecode.model import meta
47 from rhodecode.model.caching_query import FromCache
48 from rhodecode.model.db import Repository, User, RhodeCodeUi, UserLog, RepoGroup, \
49 from rhodecode.model.db import Repository, User, RhodeCodeUi, UserLog, RepoGroup, \
49 RhodeCodeSetting
50 RhodeCodeSetting
50
51
@@ -44,9 +44,10 b' from rhodecode.lib import str2bool, safe'
44 generate_api_key, safe_unicode
44 generate_api_key, safe_unicode
45 from rhodecode.lib.exceptions import UsersGroupsAssignedException
45 from rhodecode.lib.exceptions import UsersGroupsAssignedException
46 from rhodecode.lib.compat import json
46 from rhodecode.lib.compat import json
47 from rhodecode.lib.caching_query import FromCache
47
48
48 from rhodecode.model.meta import Base, Session
49 from rhodecode.model.meta import Base, Session
49 from rhodecode.model.caching_query import FromCache
50
50
51
51
52
52 log = logging.getLogger(__name__)
53 log = logging.getLogger(__name__)
@@ -3,7 +3,7 b' from sqlalchemy.ext.declarative import d'
3 from sqlalchemy.orm import scoped_session, sessionmaker
3 from sqlalchemy.orm import scoped_session, sessionmaker
4 from beaker import cache
4 from beaker import cache
5
5
6 from rhodecode.model import caching_query
6 from rhodecode.lib import caching_query
7
7
8
8
9 # Beaker CacheManager. A home base for cache configurations.
9 # Beaker CacheManager. A home base for cache configurations.
@@ -28,9 +28,11 b' import traceback'
28
28
29 from sqlalchemy.exc import DatabaseError
29 from sqlalchemy.exc import DatabaseError
30
30
31 from rhodecode.lib.caching_query import FromCache
32
31 from rhodecode.model import BaseModel
33 from rhodecode.model import BaseModel
32 from rhodecode.model.db import User, Permission, UserToPerm, UserRepoToPerm
34 from rhodecode.model.db import User, Permission, UserToPerm, UserRepoToPerm
33 from rhodecode.model.caching_query import FromCache
35
34
36
35 log = logging.getLogger(__name__)
37 log = logging.getLogger(__name__)
36
38
@@ -34,9 +34,9 b' from vcs.utils.lazy import LazyProperty'
34 from vcs.backends import get_backend
34 from vcs.backends import get_backend
35
35
36 from rhodecode.lib import safe_str
36 from rhodecode.lib import safe_str
37 from rhodecode.lib.caching_query import FromCache
37
38
38 from rhodecode.model import BaseModel
39 from rhodecode.model import BaseModel
39 from rhodecode.model.caching_query import FromCache
40 from rhodecode.model.db import Repository, UserRepoToPerm, User, Permission, \
40 from rhodecode.model.db import Repository, UserRepoToPerm, User, Permission, \
41 Statistics, UsersGroup, UsersGroupRepoToPerm, RhodeCodeUi, RepoGroup
41 Statistics, UsersGroup, UsersGroupRepoToPerm, RhodeCodeUi, RepoGroup
42 from rhodecode.model.user import UserModel
42 from rhodecode.model.user import UserModel
@@ -29,8 +29,9 b' import traceback'
29 from pylons.i18n.translation import _
29 from pylons.i18n.translation import _
30
30
31 from rhodecode.lib import safe_unicode
31 from rhodecode.lib import safe_unicode
32 from rhodecode.lib.caching_query import FromCache
33
32 from rhodecode.model import BaseModel
34 from rhodecode.model import BaseModel
33 from rhodecode.model.caching_query import FromCache
34 from rhodecode.model.db import User, UserRepoToPerm, Repository, Permission, \
35 from rhodecode.model.db import User, UserRepoToPerm, Repository, Permission, \
35 UserToPerm, UsersGroupRepoToPerm, UsersGroupToPerm, UsersGroupMember
36 UserToPerm, UsersGroupRepoToPerm, UsersGroupToPerm, UsersGroupMember
36 from rhodecode.lib.exceptions import DefaultUserException, \
37 from rhodecode.lib.exceptions import DefaultUserException, \
@@ -26,8 +26,9 b''
26 import logging
26 import logging
27 import traceback
27 import traceback
28
28
29 from rhodecode.model import BaseModel
29 from rhodecode.lib.caching_query import FromCache
30 from rhodecode.model.caching_query import FromCache
30
31 from rhodecode.model import BaseMode
31 from rhodecode.model.db import UsersGroupMember, UsersGroup
32 from rhodecode.model.db import UsersGroupMember, UsersGroup
32
33
33 log = logging.getLogger(__name__)
34 log = logging.getLogger(__name__)
General Comments 0
You need to be logged in to leave comments. Login now