[JDEV] New jabber python library

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


Also forgot to mention:
this code was tested against v0.4-1.
It causing a backtrace on current CVS version so investigating it now.

> 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$
> ===========================

--
Respectively
Alexey Nezhdanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20031212/b30dbed3/attachment-0002.htm>


More information about the JDev mailing list