Pluggable per-table handlers for event processing.
authorMarko Kreen <markokr@gmail.com>
Fri, 7 May 2010 12:17:53 +0000 (15:17 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 30 Aug 2010 10:50:44 +0000 (13:50 +0300)
commit8cc52f36d91d237870e5dcef05519240ab56517b
tree1a792d4f53a106121f427970850226b56e4a6956
parentc1790927c21645ac3985cb68bf1cddf9a9ccc039
Pluggable per-table handlers for event processing.

1. Make handler modules known for Londiste:

  [londiste3]
  handler_modules = londiste.bublin, some_other.module

Modules are imported and classes found in __londiste_handlers__
module variable are registered.

2. Generic table setup:

  londiste3 cf.ini add-table foo --handler='handler1' --handler='handler2(arg1, arg2)'

Londiste standard handler is default and always appended to custom plugins.
python/londiste.py
python/londiste/__init__.py
python/londiste/handler.py [new file with mode: 0644]
python/londiste/playback.py
python/londiste/setup.py
python/londiste/table_copy.py