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.
I was thinking it would be nice to have a Twisted interest group meetup at
EuroPython (June 30 - July 2) http://www.europython.eu
Would people be interested in attending? Does someone more qualified want
to organize it? Are any Twisted developers planning to be at EuroPython?
The submissions page http://www.europython.eu/submission/ has a category
for Interest Group Meeting or Discussion. I'm thinking more along the lines
of the former - that it would be nice to be better connected to other
Twisted programmers in Europe, to put a face to some of the names on the
mailing list / IRC, etc.
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
> Is there some way it can determine that the connection has been lost aside
> from trying the rollback (and is compatible with other DB-API 2.0 modules)?
Oops, I actually did see my message going through now. Sorry for the duplicate.
To answer your question, I was under the impression that the cp_reconnect would check to see if the connection existed already. Is there a way to have it check that query before rolling back? I'm guessing other databases/apis don't throw exceptions on a rollback if the connection is gone?
i've implemented a pb client by writing a class which inherits from
object and a class which inherits from ReconnectingClientFactory and
Till now it's all ok, the client detects the disconnection and try to
reconnect with an exponential delay if the connection is not
The calls to the callRemote("get_item") method are repetitive, but for
sake of simplicity i've cut off the code that controls if there is
already another call running.
i'd like to manage something like the clientConnectionMade method when
the client reconnect (thanks to the ReconnectingClientFactory) after a
disconnection and launch again the MypbClient.connect() method as i do
in the "if __name__ " statement, but i can't guess how to do it.
This is the code i'm using.
Thanks in advanche, any help appreciated, and hope to have been clear enough
self.clientfactory = MypbClientFactory()
self._scheduledCall] = task.LoopingCall(self.get_item)
reactor.connectTCP(server_ip, server_port, self.clientfactory)
self.rootObj = self.clientfactory.getRootObject()
def initiateChain(self, broker):
self.broker = broker
self.d = self.broker.callRemote("get_item")
def get_item(self, result):
self.d = self.broker.callRemote("get_item")
def got_item(self, record):
self.op = doSomethingWith(record) #returns a deferred
class MypbClientFactory(pb.PBClientFactory, protocol.ReconnectingClientFactory):
def clientConnectionMade(self, broker):
def clientConnectionFailed(self, connector, reason):
pb.PBClientFactory.clientConnectionFailed(self, connector, reason)
self.connector = connector
def clientConnectionLost(self, connector, reason, reconnecting=1):
if __name__ == "__main__":
dpc = MypbClient()