Restructure gvaweb to correct package paths

This commit is contained in:
Jan Dittberner 2020-03-02 16:51:00 +01:00
parent 63e065b8c0
commit 0eb766051c
10 changed files with 3 additions and 54 deletions

3
gvacommon/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.*.swp
*.pyc
.ropeproject/

0
gvacommon/__init__.py Normal file
View file

View 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