> On 2007-06-12T03:33:33, Xinwei Hu <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm trying to run haclient on the Windows platform. The biggest > > difficulty is to port the C code of lib/mgmt to mingw/cygwin platform. > > > > A much eaiser step, which I take now, is to rewrite the client part of > > lib/mgmt in pure python (ctypes + gnutls binding). The windows version of > > haclient now works with minimum modification (popen(uuidgen) is replaced > > with uuid.uuid4()). :) > > > > As this change will impose some extra dependencies on python and python > > libraries, I'd like to know your comments on this :) > > > > The source code is under cleaning up, I'll send it out soon. > > SWIG should be able to help you quite a bit there. > Further, Andrew has a gnutls based interface directly to the CIB, just > in case you want to do away with the mgmtd stuff ;-)
Here attached the pure python version of pymgmt. It can be used to replace $LIB/heartbeat-gui/pymgmt.py directly without affecting anyone else. :) With this pymgmt.py, _pymgmt.so is deprecated and can be deleted. Also, as pure python code, this version can be easily adapted to support Andrew's remote-cib w/o involve any recompiling things :) > > Regards, > Lars
pymgmt.py
Description: application/python
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/