hi there, folks:
I'd really like to release 0.7.0 but I would like it to be at least a
little bit tested before I do so. Could those of you with CVS trees check
everything out and see if it performs as advertised? Deeper bugs than
that will have to wait for the next release, but I'd at least like to know
if it works for someone other than me.
______ __ __ _____ _ _
| ____ | \_/ |_____] |_____|
|_____| |_____ | | | |
@ t w i s t e d m a t r i x . c o m
I have an xml file in my application,
I have created an element using
Example goes like this.........
and i appeneded it by using append() method.
But how i can reflect this change to my xml file?
and one more thing is i want to create element with some other parameters....
<abc m=" " n=" ">
and i have m and n values as strings with me.
can anybody help me to create this element and write it to the existing xml file
as a child of an existing element?
Thanks in advance..
Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php
On 18 May 2004, the following message was posted to this mailinglist:
Jp Calderone exarkun at divmod.com wrote:
>Daniel Newton wrote:
> I have a simple XML-PRC server similar to the example below:
> from twisted.web import xmlrpc, server
> class Example(xmlrpc.XMLRPC):
> """An example object to be published."""
> def xmlrpc_add(self, a, b):
> """Return sum of arguments."""
> return a + b
> if __name__ == '__main__':
> from twisted.internet import reactor
> r = Example()
> reactor.listenTCP(7080, server.Site(r))
> I want to be able to get the address of the client that calls the
> method can anyone help me with this?
This solution didn't work because 'transport' isn't a property of the
I'm currently in the process of changing from a customized
SimpleXMLRPCServer to a twisted XMLRPC server solution and I need to
insert the client IP into the attributes passed to the called xmlrpc
method. Anyone who knows the answer and is willing to share the info?
I have a sample XMPP client with the following structure:
from twisted.words.protocols.jabber import client, jid
from twisted.internet import reactor
factory = client.basicClientFactory(myJid, myPasswd)
It works well, I can connect to the XMPP server. But I would appreciate
if some one could give me some hints on what's required to get the
client to connect using a secure SSL link.
Need help with Twisted, distributed systems or or just plain old
Due to a repetitive strain injury I am unable to type much (though
I am slowly improving), and so I'm taking time off of work to recover.
As a result I am available for short-term consulting until I recover,
e.g. training or design work, assuming of course it does not involve
I've worked on Twisted itself, as well as projects ranging from
high-performance distributed C++ servers, to an access control framework
for an airline reservation system, to a multimedia kiosk system for the
Israel Museum in Jerusalem:
Send me an e-mail if you're interested.
-- Itamar Shtull-Trauring
I used py2exe on a Twisted app of mine and I get this exception :
Traceback (most recent call last):
File "proj\service.pyc", line 1308, in connectionMade
File "proj\service.pyc", line 1640, in _register
File "proj\service.pyc", line 504, in loadPlugins
File "twisted\plugin.pyc", line 200, in getPlugins
--- <exception caught here> ---
File "twisted\plugin.pyc", line 179, in getCache
exceptions.AttributeError: ZipPath instance has no attribute 'setContent'
Has anyone ever had this problem while using plugins with Twisted and
I have been using a custom Qt4 reactor that derives from
PosixReactorBase. As a result it creates a _Win32Waker to allow
threads and signals to wake up the IO thread. It seems though that the
current implementation only works about half of the time. The other
half it exists with :
line 170, in __init__
line 424, in __init__
line 813, in _initThreads
line 206, in installWaker
self.waker = _Waker(self)
line 77, in __init__
File "<string>", line 1, in connect
socket.error: [Errno 10049] The requested address is not valid in its context
I have attached a simple test that shows that the following code does
not always return "127.0.0.1", but sometimes returns "0.0.0.0" as the
# Following select_trigger (from asyncore)'s example;
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.setsockopt(socket.IPPROTO_TCP, 1, 1)
My current workaround just calls the following instead:
Any ideas on what is really causing the error? If there is not a
better solution can this be added to trunk for future releases?
I'm a long time linux/python user who's just now starting to use twisted. I am looking for advice more than anything specific. We're working on a small game/etc server that has several small games that can be played between users. Maybe a card game, tic-tac-toe, etc. There are a lot of different plugin subclasses to inherit from-how do you know which is best? And with this kind of framework, is it better to have one interface class, say iGame, that all the games inherit from, or is it better to treat each game like a seperate plugin inheriting from different twisted plugin classes?
There is a lot of good twisted documentation, but that is what also makes it difficult because each one does things differently depending on what they're implementing and it makes it difficult to decide which is the correct approach for what I want to do. So, if there are any good documents related closer to what I'm doing I'd appreciate the heads up on that as well. Well, thanks for your time.
Windows Live™ SkyDrive: Get 25 GB of free online storage.
I recently came across this issue , and Glyph commented about official
We're using Ubuntu Hardy and created packages for Twisted 8.2.0, as Ubuntu LTS
is our platform of choice. Those packages were accepted by their official
maintainer (Matthias Klose, doko(a)debian.org) and uploaded to Ubuntu Jaunty
and Debian unstable.
Sadly, the official packages now use python-central (>=0.6.11), which isn't
available in Hardy, so we'll have to stick to the packages in our PPA  In
any case, we'll update them when Twisted 9.0 is released, but I think it
would be better to upload them to a PPA repository officially approved by the
Anyway, it would be great to have recent packages of Twisted for distributions
that offer some kind of long term support contracts (Ubuntu, RHEL, etc.), but
that tend to get a bit outdated.
1 - http://twistedmatrix.com/trac/ticket/3102
2 - https://launchpad.net/~fluidinfo/+archive/ppa