Show More
@@ -214,9 +214,7 b' def log_push_action(ui, repo, **kwargs):' | |||||
214 |
|
214 | |||
215 | def log_create_repository(repository_dict, created_by, **kwargs): |
|
215 | def log_create_repository(repository_dict, created_by, **kwargs): | |
216 | """ |
|
216 | """ | |
217 | Post create repository Hook. This is a dummy function for admins to re-use |
|
217 | Post create repository Hook. | |
218 | if needed. It's taken from rhodecode-extensions module and executed |
|
|||
219 | if present |
|
|||
220 |
|
218 | |||
221 | :param repository: dict dump of repository object |
|
219 | :param repository: dict dump of repository object | |
222 | :param created_by: username who created repository |
|
220 | :param created_by: username who created repository | |
@@ -261,9 +259,7 b' def check_allowed_create_user(user_dict,' | |||||
261 |
|
259 | |||
262 | def log_create_user(user_dict, created_by, **kwargs): |
|
260 | def log_create_user(user_dict, created_by, **kwargs): | |
263 | """ |
|
261 | """ | |
264 | Post create user Hook. This is a dummy function for admins to re-use |
|
262 | Post create user Hook. | |
265 | if needed. It's taken from rhodecode-extensions module and executed |
|
|||
266 | if present |
|
|||
267 |
|
263 | |||
268 | :param user_dict: dict dump of user object |
|
264 | :param user_dict: dict dump of user object | |
269 |
|
265 | |||
@@ -300,9 +296,7 b' def log_create_user(user_dict, created_b' | |||||
300 |
|
296 | |||
301 | def log_delete_repository(repository_dict, deleted_by, **kwargs): |
|
297 | def log_delete_repository(repository_dict, deleted_by, **kwargs): | |
302 | """ |
|
298 | """ | |
303 | Post delete repository Hook. This is a dummy function for admins to re-use |
|
299 | Post delete repository Hook. | |
304 | if needed. It's taken from rhodecode-extensions module and executed |
|
|||
305 | if present |
|
|||
306 |
|
300 | |||
307 | :param repository: dict dump of repository object |
|
301 | :param repository: dict dump of repository object | |
308 | :param deleted_by: username who deleted the repository |
|
302 | :param deleted_by: username who deleted the repository | |
@@ -338,9 +332,7 b' def log_delete_repository(repository_dic' | |||||
338 |
|
332 | |||
339 | def log_delete_user(user_dict, deleted_by, **kwargs): |
|
333 | def log_delete_user(user_dict, deleted_by, **kwargs): | |
340 | """ |
|
334 | """ | |
341 | Post delete user Hook. This is a dummy function for admins to re-use |
|
335 | Post delete user Hook. | |
342 | if needed. It's taken from rhodecode-extensions module and executed |
|
|||
343 | if present |
|
|||
344 |
|
336 | |||
345 | :param user_dict: dict dump of user object |
|
337 | :param user_dict: dict dump of user object | |
346 |
|
338 |
@@ -28,7 +28,7 b' import sys' | |||||
28 | import logging |
|
28 | import logging | |
29 | from os.path import dirname as dn, join as jn |
|
29 | from os.path import dirname as dn, join as jn | |
30 |
|
30 | |||
31 | #to get the rhodecode import |
|
31 | # Add location of top level folder to sys.path | |
32 | sys.path.append(dn(dn(dn(os.path.realpath(__file__))))) |
|
32 | sys.path.append(dn(dn(dn(os.path.realpath(__file__))))) | |
33 |
|
33 | |||
34 | from whoosh.analysis import RegexTokenizer, LowercaseFilter, StopFilter |
|
34 | from whoosh.analysis import RegexTokenizer, LowercaseFilter, StopFilter |
@@ -36,7 +36,7 b' from time import mktime' | |||||
36 | from os.path import dirname as dn |
|
36 | from os.path import dirname as dn | |
37 | from os.path import join as jn |
|
37 | from os.path import join as jn | |
38 |
|
38 | |||
39 | #to get the rhodecode import |
|
39 | # Add location of top level folder to sys.path | |
40 | project_path = dn(dn(dn(dn(os.path.realpath(__file__))))) |
|
40 | project_path = dn(dn(dn(dn(os.path.realpath(__file__))))) | |
41 | sys.path.append(project_path) |
|
41 | sys.path.append(project_path) | |
42 |
|
42 |
@@ -34,7 +34,7 b' from rhodecode.model.meta import Session' | |||||
34 | from rhodecode.lib.utils import BasePasterCommand |
|
34 | from rhodecode.lib.utils import BasePasterCommand | |
35 | from rhodecode.model.db import CacheInvalidation |
|
35 | from rhodecode.model.db import CacheInvalidation | |
36 |
|
36 | |||
37 | # fix rhodecode import |
|
37 | # Add location of top level folder to sys.path | |
38 | from os.path import dirname as dn |
|
38 | from os.path import dirname as dn | |
39 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
39 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
40 | sys.path.append(rc_path) |
|
40 | sys.path.append(rc_path) |
@@ -31,7 +31,7 b' import logging' | |||||
31 |
|
31 | |||
32 | from rhodecode.lib.utils import BasePasterCommand |
|
32 | from rhodecode.lib.utils import BasePasterCommand | |
33 |
|
33 | |||
34 | # fix rhodecode import |
|
34 | # Add location of top level folder to sys.path | |
35 | from os.path import dirname as dn |
|
35 | from os.path import dirname as dn | |
36 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
36 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
37 | sys.path.append(rc_path) |
|
37 | sys.path.append(rc_path) |
@@ -36,7 +36,7 b' from shutil import rmtree' | |||||
36 | from rhodecode.model.repo import RepoModel |
|
36 | from rhodecode.model.repo import RepoModel | |
37 | from rhodecode.lib.utils import BasePasterCommand, load_rcextensions |
|
37 | from rhodecode.lib.utils import BasePasterCommand, load_rcextensions | |
38 |
|
38 | |||
39 | # fix rhodecode import |
|
39 | # Add location of top level folder to sys.path | |
40 | from os.path import dirname as dn |
|
40 | from os.path import dirname as dn | |
41 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
41 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
42 | sys.path.append(rc_path) |
|
42 | sys.path.append(rc_path) |
@@ -33,7 +33,7 b' import pkg_resources' | |||||
33 |
|
33 | |||
34 | from rhodecode.lib.utils import BasePasterCommand, ask_ok |
|
34 | from rhodecode.lib.utils import BasePasterCommand, ask_ok | |
35 |
|
35 | |||
36 | # fix rhodecode import |
|
36 | # Add location of top level folder to sys.path | |
37 | from os.path import dirname as dn |
|
37 | from os.path import dirname as dn | |
38 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
38 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
39 | sys.path.append(rc_path) |
|
39 | sys.path.append(rc_path) |
@@ -32,7 +32,7 b' import logging' | |||||
32 | from rhodecode.model.scm import ScmModel |
|
32 | from rhodecode.model.scm import ScmModel | |
33 | from rhodecode.lib.utils import BasePasterCommand, repo2db_mapper |
|
33 | from rhodecode.lib.utils import BasePasterCommand, repo2db_mapper | |
34 |
|
34 | |||
35 | # fix rhodecode import |
|
35 | # Add location of top level folder to sys.path | |
36 | from os.path import dirname as dn |
|
36 | from os.path import dirname as dn | |
37 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
37 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
38 | sys.path.append(rc_path) |
|
38 | sys.path.append(rc_path) |
@@ -4,7 +4,7 b' from paste.script.appinstall import Abst' | |||||
4 | from paste.script.command import BadCommand |
|
4 | from paste.script.command import BadCommand | |
5 | from paste.deploy import appconfig |
|
5 | from paste.deploy import appconfig | |
6 |
|
6 | |||
7 | # fix rhodecode import |
|
7 | # Add location of top level folder to sys.path | |
8 | from os.path import dirname as dn |
|
8 | from os.path import dirname as dn | |
9 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
9 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
10 | sys.path.append(rc_path) |
|
10 | sys.path.append(rc_path) |
@@ -35,7 +35,7 b' from rhodecode.model.db import Repositor' | |||||
35 | from rhodecode.model.repo import RepoModel |
|
35 | from rhodecode.model.repo import RepoModel | |
36 | from rhodecode.model.meta import Session |
|
36 | from rhodecode.model.meta import Session | |
37 |
|
37 | |||
38 | # fix rhodecode import |
|
38 | # Add location of top level folder to sys.path | |
39 | from os.path import dirname as dn |
|
39 | from os.path import dirname as dn | |
40 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) |
|
40 | rc_path = dn(dn(dn(os.path.realpath(__file__)))) | |
41 | sys.path.append(rc_path) |
|
41 | sys.path.append(rc_path) |
General Comments 0
You need to be logged in to leave comments.
Login now