From: Alexey N. <sn...@pe...> - 2004-09-30 04:14:49
|
=F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 =F3=D2=C5=C4=C1 29 =F3=C5=CE=D4=D1= =C2=D2=D8 2004 08:44 oboe =CE=C1=D0=C9=D3=C1=CC(a): > > > > confusing code. > I still stand by my statement (: > Since you write no documentation, can you at least add a couple simple > comments as you go? I'd like to help, but your code is not the :most: self > explanitory. Python is not my first language. I have nothing to complain. The xmppd.py project targets for several goals = and=20 "well-documented" is among them. I'll try to start acheving it. > > The stanza is first-level node in xml stream with name one of > > 'message','iq' or 'presence'. > > In this example stanza can come in as Node class instance or already > > serialised and of <type string>. Hence the check for the python class > > type. > > > > > > This is the error running xmppd.py > > > > > > > > File "./xmppd.py", line 96, in send > > > > self._owner.enqueue(self,stanza) > > > > File "./xmppd.py", line 216, in enqueue > > > > elif type(stanza)<>type(''): stanza =3D > > > > stanza.__str__(nsvoc=3Dsession.Stream.nsvoc).encode('utf-8') TypeEr= ror: > > > > __str__() got an unexpected keyword argument 'nsvoc' > > > > Probably you are using xmppd.py with old xmpppy library. Try using > > version, included in xmppd.tar.gz package. > > Actually, I'm making the assumption that cvs mainline is :basically: > functional code. My main CVS repository resides on my hard disk because of too slow channel = to=20 SF from my home (actually a very busy 9600bps link). So SF's CVS check ins= =20 are rare now and xmppd.py and xmpppy reposytoryes are out-of-sync sometimes. The nxvoc feature was added to xmpppy code just before xmppd-0.1 release an= d=20 then I've considered it harmful and removed it. > I've also had to comment out the psyco calls, considering=20 > I am not on an x86 platform. Probably I should write some code to detect host platform. =2D-=20 Respectfully Alexey Nezhdanov |