mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Move protocol controllers into subdirectories.
This commit is contained in:
parent
4d2713fc86
commit
44495093d2
@ -22,6 +22,8 @@ We don't:
|
|||||||
- Use a reasonable data-store.
|
- Use a reasonable data-store.
|
||||||
- Have a decent control (rate-limiting) mechanism.
|
- Have a decent control (rate-limiting) mechanism.
|
||||||
|
|
||||||
|
:FIXME: Remove sets and just do "key in" operations - it's annoying to remember
|
||||||
|
to convert to and from sets with every operation. Or just build a wrapper.
|
||||||
:TODO: add doctests
|
:TODO: add doctests
|
||||||
:FIXME: allow multiple listeners and senders per protocol (with different
|
:FIXME: allow multiple listeners and senders per protocol (with different
|
||||||
proxies)
|
proxies)
|
||||||
@ -159,7 +161,7 @@ class Santiago(object):
|
|||||||
FIXME: Assumes the current directory is in sys.path
|
FIXME: Assumes the current directory is in sys.path
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import_name = "protocols." + protocol
|
import_name = "protocols.{0}.controller".format(protocol)
|
||||||
|
|
||||||
if not import_name in sys.modules:
|
if not import_name in sys.modules:
|
||||||
__import__(import_name)
|
__import__(import_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user