Add 'gvaldap/gvacommon/' from commit 'e29646a94714d516d52272fc83d9a15bbc21e488'

git-subtree-dir: gvaldap/gvacommon
git-subtree-mainline: 327e2ab94e
git-subtree-split: e29646a947
This commit is contained in:
Jan Dittberner 2014-12-27 14:03:13 +01:00
commit 70045771c9
3 changed files with 26 additions and 0 deletions

2
gvaldap/gvacommon/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.*.swp
*.pyc

View file

View file

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class LdapRouter(object):
def route_for_task(self, task, args=None, kwargs=None):
if 'ldap' in task:
return {'exchange': 'ldap',
'exchange_type': 'direct',
'queue': 'ldap'}
return None
class FileRouter(object):
def route_for_task(self, task, args=None, kwargs=None):
if 'file' in task:
return {'exchange': 'file',
'exchange_type': 'direct',
'queue': 'file'}
return None