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
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 would really like to be able to pass custom exceptions over the wire
in PB. Previous discussion on this list ended with the conclusion
that it currently isn't possible without hacking a local copy of
I have done that to get the result I want, with minimal testing, and
would like to get some discussion going around this topic. Attached
are 3 test files, s.py for the server, c.py for the client, and e.py
for the error definitions which are imported by both s.py and c.py.
If I make the following modification to my local copy of
twisted/spread/pb.py in the CopyableFailure's getStateToCopy method,
the custom error is passed back as I want.
#state['value'] = str(self.value) # Exception instance
state['value'] = self.value # Exception instance
I was wondering if there is a reason we wouldn't want to change the
code to check for registered unjellyables for the exception, and
return them (or rather go through the jelly/unjelly process) if they
exist, but return the string representation otherwise. Maybe that is
more complicated than I realize.
Any thoughts or suggestions on how we might make this possible?
I've thrown together some tarballs with my latest release automation
code. You can download them here:
Please download the packages relevant to you and give them a test.
You'll need to install Twisted-2.0.0a1 before any of the other
subproject packages in there, and it depends on zope.interface being
installed, which I haven't bothered including yet.
If anybody's interested in making packages for their OS, now's the
time to start working on it.
Twisted | Christopher Armstrong: International Man of Twistery
Radix | -- http://radix.twistedmatrix.com
| Release Manager, Twisted Project
\\\V/// | -- http://twistedmatrix.com
|o O| | Founding Member, Hobart Hacking Society
w----v----w-+ -- http://hackingsociety.org/chapters/hash
There are some loose plans floating around for a Twisted Sprint in
Hobart Australia, and we'd like some feedback from people who are likely
to attend, for planning purposes.
Date: Likely to be three days, including a Saturday and Sunday, in
either late March or early April 2005.
Location: Hobart, Australia.
If you're even vaguely likely to be able to attend such a thing, can you
reply to me off-list and let me know. Include a preference for a
particular weekend during that time if you have any.
As part of releasing Twisted 2.0, we'll probably want to do another
press release and add some more success stories to the website. We would
love to have success stories, quotes, and so on from companies and
individuals using Twisted. Email me, or the list if you want.
Itamar Shtull-Trauring <itamar(a)itamarst.org>
An established start-up doing cutting-edge distributed storage
services using Python & Twisted is looking for experienced coders. If
you want to put your code-fu skills to use and get paid to solve
interesting problems using Twisted let us know.
Questions & queries to allmydata.jobs(a)gmail.com
I'm using twisted.names (DNS server) but have a need to do updates (see
I've already done some work on this (which I plan to submit in due course),
a) Is anyone else working on updates (wouldn't want to duplicate efforts)?
b) Is there some fundamental reason why I shouldn't do this?