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 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
I am working on the VIFF project (viff.dk) which uses Twisted. I found
out that our code is sometimes inefficient because we are generating
many deferreds (maybe about 10000) in a callback. While doing that, no
network communication is performed. Therefore, I investigated the
possibility of adding a function to the reactor which is called every
iteration and from which the iteration could be called safely. Then, we
could generate all deferreds in that function and activate the reactor
from to time. See the attached patch for details.
Some of our code runs twice as fast when using that hack. Are there any
chances something similar might be included in Twisted? Or does anyone
have a better solution for the described problem?
Furthermore, I have a question, which is probably related. The
documentation of IReactorCore says about the iterate() function:
"The reactor must have been started (via the run() method) prior to any
invocations of this method. It must also be stopped manually after the
last call to this method (via the stop() method). This method is not
re-entrant: you must not call it recursively; in particular, you must
not call it while the reactor is running."
This looks to me as if the reactor needs to be running and not running
at the same time so that iterate() can be called. Is there an error in
--- /usr/lib/python2.5/site-packages/twisted/internet/base.py 2008-07-29 22:13:54.000000000 +0200
+++ internet/base.py 2009-02-20 12:27:42.000000000 +0100
@@ -1127,17 +1127,32 @@
+ def setLoopCall(self, f, *args, **kw):
+ self.loopCall = (f, args, kw)
+ def myIteration(self, t):
+ # Advance simulation time in delayed event
+ # processors.
+ if (t is None):
+ t2 = self.timeout()
+ t = self.running and t2
+ if ("loopCall" in dir(self)):
+ f, args, kw = self.loopCall
+ f(*args, **kw)
- # Advance simulation time in delayed event
- # processors.
- t2 = self.timeout()
- t = self.running and t2
log.msg("Unexpected error in main loop.")
As part of the TSF's fundraising efforts, we are trying to get upfront
donations of time you will spend developing Twisted. It will then get
matched by a donor, if we are successful in getting this grant. So if
you're planning on working on Twisted anyway this year, your work will
count twice as much!
So, if you're interested, please reply, saying something like "I will
spend two weeks working on Gopher support over the next year."