From: Adam R. <Ad...@Kn...> - 2003-02-18 08:41:10
|
Just did a CVS commit of asynchttp.py (from another sourceforge = project), plus the newly-written-by-us scheduler.py and pubsublib.py, = into the mod_pubsub/python_pubsub directory. As a result, python_pubsub = now contains a working pubsub standalone server and embeddable client = library. Also, earlier this evening checked in a patch to pubsub.cgi that fixed = posting absolute url for topic with the notify method. Added a new test = to cgi-bin/pubsub_test.cgi to check for this. For those folks with CVS, you can do an update; I'll put together = another tarball of the whole distribution later this week. -- Adam P.S. -- Below is the preamble to pubsublib.py . pubsublib.py -- PubSub Python Client Library for use with pubsub.py & mod_pubsub This is a simple Python client library for use in event-driven programs. It can publish, subscribe, and unsubscribe in (more or less) the same way the PubSub JavaScript Library does. Phil Harris' kn_python is available at = http://cvs.developer.knownow.com/ . Two ways in which pubsublib.py differs from kn_python: 1. The interface is URL based. 2. All operations are in a single thread and nonblocking, using asyncore. Version 1.0 -- February 18, 2003. Initial implementation. Works fine on Debian GNU Linux 3.0 with Python 2.1.3. Known Issues: 1. No unit test suite. We plan to port the JavaScript PubSub Library unit test suite to test this implementation. 2. Lots of FIXME and TODO things left -- see source code = comments. =20 |