docs: Adds Custom broker class documentation

Also changes some of the variable and settings names, to make them less ambiguous.
This commit is contained in:
Ilan Steemers
2016-01-27 12:06:49 +01:00
parent 3ac7f26de5
commit c17468ef86
5 changed files with 53 additions and 6 deletions
+2 -2
View File
@@ -159,8 +159,8 @@ def get_broker(list_key=Conf.PREFIX):
:return:
"""
# custom
if Conf.BROKER:
module, func = Conf.BROKER.rsplit('.', 1)
if Conf.BROKER_CLASS:
module, func = Conf.BROKER_CLASS.rsplit('.', 1)
m = importlib.import_module(module)
broker = getattr(m, func)
return broker(list_key=list)