Mercurial > kallithea
comparison rhodecode/lib/paster_commands/cache_keys.py @ 3915:a42bfe8a9335 beta
moved make-index command to paster_commands module
- optimized imports and code
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 30 May 2013 00:01:16 +0200 |
parents | e9ac7544c2f6 |
children | 7c84b383824f |
comparison
equal
deleted
inserted
replaced
3914:424b6c711a7f | 3915:a42bfe8a9335 |
---|---|
27 | 27 |
28 import os | 28 import os |
29 import sys | 29 import sys |
30 import logging | 30 import logging |
31 | 31 |
32 from os.path import dirname as dn, join as jn | |
33 from rhodecode.model.meta import Session | 32 from rhodecode.model.meta import Session |
34 #to get the rhodecode import | 33 from rhodecode.lib.utils import BasePasterCommand |
34 from rhodecode.model.db import CacheInvalidation | |
35 | |
36 # fix rhodecode import | |
37 from os.path import dirname as dn | |
35 rc_path = dn(dn(dn(os.path.realpath(__file__)))) | 38 rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
36 sys.path.append(rc_path) | 39 sys.path.append(rc_path) |
37 from rhodecode.lib.utils import BasePasterCommand | |
38 | |
39 from rhodecode.model.db import CacheInvalidation | |
40 | |
41 | 40 |
42 log = logging.getLogger(__name__) | 41 log = logging.getLogger(__name__) |
43 | 42 |
44 | 43 |
45 class Command(BasePasterCommand): | 44 class Command(BasePasterCommand): |