Restructure gvaweb to correct package paths
This commit is contained in:
parent
63e065b8c0
commit
0eb766051c
10 changed files with 3 additions and 54 deletions
3
gvacommon/.gitignore
vendored
Normal file
3
gvacommon/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.*.swp
|
||||
*.pyc
|
||||
.ropeproject/
|
0
gvacommon/__init__.py
Normal file
0
gvacommon/__init__.py
Normal file
11
gvacommon/celeryrouters.py
Normal file
11
gvacommon/celeryrouters.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
class GvaRouter(object):
|
||||
def route_for_task(self, task, args=None, kwargs=None):
|
||||
for route in ['ldap', 'file', 'mysql', 'pgsql', 'web']:
|
||||
if route in task:
|
||||
return {
|
||||
'exchange': route,
|
||||
'exchange_type': 'direct',
|
||||
'queue': route,
|
||||
}
|
||||
return None
|
Loading…
Add table
Add a link
Reference in a new issue