from factornado.handlers import Todo, Do
from factornado.application import Application


__version__ = '0.2.0'


if __name__ == '__main__':

    class MyToDo(Todo):
        def todo_loop(self, data):
            for k in range(2):
                data['nb'] += 1
                yield 'ABCDE'[data['nb'] % 5], {}

    class MyDo(Do):
        def do_something(self, task_key, task_data):
            return 'something'

    app = Application('config.yml', [
        ("/todo", MyToDo),
        ("/do", MyDo),
        ], )

    app.start_server()

@@ -102,13 +102,14 @@
  = '
-0.2.0
+master
 '%0A%0A%0A

Set version to 'master' on master