python-zk/kazoo — pull request #28 by robertmyhill (2012-09-21 21:44:30+00:00)
Title: Sage kazoo 0.3

Hello,

I'm new to the contributing to the open source community, so please let me know if I'm following the proper procedures.

Here's a change to DataWatch that I've tested out myself, including adding some unit tests in test_watchers.py.

Hopefully the comments are self-explanatory. My goal here is to add support for watches on ZNodes that do not yet exist, using the ZooKeeper "exists" method. I've done this by enhancing the _get_data method, although I'd be happy to break out the new functionality into a new method, leaving _get_data alone. It doesn't matter to me.

I'm initially adding this to the 0.3 release of Kazoo, because that is the one I'm using (0.5 does not seem stable yet).

Thanks.
Robert