summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/londiste/handler.py5
-rw-r--r--python/londiste/handlers/__init__.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/python/londiste/handler.py b/python/londiste/handler.py
index 9cbfa202..265f83af 100644
--- a/python/londiste/handler.py
+++ b/python/londiste/handler.py
@@ -29,7 +29,7 @@ plain londiste:
"""
-import sys, skytools
+import sys, skytools, londiste.handlers
__all__ = ['RowCache', 'BaseHandler', 'parse_handler', 'build_handler', 'load_handlers']
@@ -188,7 +188,8 @@ def parse_handler(tblname, hstr, log):
def load_handlers(cf):
"""Load and register modules from config."""
- lst = cf.getlist('handler_modules', [])
+ lst = londiste.handlers.DEFAULT_HANDLERS
+ lst += cf.getlist('handler_modules', [])
for m in lst:
register_handler_module(m)
diff --git a/python/londiste/handlers/__init__.py b/python/londiste/handlers/__init__.py
index 3efea304..c5de83c6 100644
--- a/python/londiste/handlers/__init__.py
+++ b/python/londiste/handlers/__init__.py
@@ -1 +1,4 @@
# handlers module
+
+DEFAULT_HANDLERS = ['londiste.handlers.bulk']
+