[JDEV] New jabber python library

Alexey Nezhdanov snake at penza-gsm.ru
Thu Dec 11 22:16:26 CST 2003


Ralph Meijer wrote:

>On Thu, Dec 11, 2003 at 09:42:18PM +0300, Alexey Nezhdanov wrote:
>  
>
>>[...] 
>>
>>The library is designed from scratch (except of XML handling and iq, protocol,
>>message and JID concepts) with SASL, TLS, privacy handling, MUC and other in
>>mind.
>>Though for now it can only all that jabberpy.Client can except of browsing and
>>registering.
>>    
>>
>
>As you state, the XML handling is 'original'.
>
>Did you solve the bugs as reported in the sourceforge bug tracker for
>the original jabberpy? For some reason all bug reports have been closed at
>the same time by you, but I'm not sure whether they have been fixed.
>
>Although there are several bugs, the most significant one (in the XML handling
>code) is outlined in the following report and makes working with jabberpy, or
>derived code like yours, for any serious work nearly impossible.
>
>http://sourceforge.net/tracker/index.php?func=detail&aid=735481&group_id=30215&atid=398567
>
>  
>
Oh sorry! I simply forgot that I must reply on every bugreport before 
closing it. Doing it now.
==========================
snake at home1:~/tmp/jabberpy0.4-1$ cat 12120653.py                
#!/usr/bin/python
import jabber

message=jabber.Message(to='somebody at example.org',body="i'm an apostrophe 
user")

print `message.getBody()`
print `message.asNode()._xmlnode2str()`
snake at home1:~/tmp/jabberpy0.4-1$ ./12120653.py
"i'm an apostrophe user"
"<message to='somebody at example.org'><body>i'm an apostrophe 
user</body></message>"
snake at home1:~/tmp/jabberpy0.4-1$
===========================
Is it enough?

As far as I remember all bugs were closed after appropriate fix except 
of feature request
http://sourceforge.net/tracker/index.php?func=detail&aid=839539&group_id=30215&atid=398570
(None values for absent node and resource JID parts).
I've added appropriate code at first but removed it later since it 
caused bugs in many other code. And after all '' value can be always 
treated as None value since node and resource parts MUST contain at 
least one symbol IF they were present.

--
Respectively
Alexey Nezhdanov.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20031212/6d9fe327/attachment-0002.htm>


More information about the JDev mailing list