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 didn't want to hijack the 'Twisted Presentation Materials..' thread,
so I started this one ...
First off, in the other thread,
Glenn, you mentioned Storm. I have heard of Storm, but never got
any deeper that noticing that it is still a work in progress (maybe
things have settled down ?)
If anyone has anything to say on how it might be a good choice with
Twisted, please feel free to enlighten us!
But, I hoping to solve some immediate problems with Twisted and
SQLAlchemy, so ...
>> * A main "App Server", that controls high level access with "twisted.cred"
>> * Web frontend: "twisted.web2"
>> * Data: some "twisted.enterprise.adbapi", moving to SQLAlchemy.
> Interesting; how are you handling asynchrony in SA?
This is the issue that we're stilling unclear on, and I really
would like to know of the best way of integrating Twisted with SQLAlchemy.
Twisted devs / experts: Please, could you comment on the right way of
using Twisted and SQLAlchemy together.
Anyone: If anyone know of existing code that integrates Twisted and
SQLAlchemy nicely, please share!
RIght away I just went about the problem be wrapping each call
to SQLAlchemy in a "deferToThread" inside my "DatabaseManager" class.
At startup of my app, I make an instance of this class, and pass it to
each "avatar" (in "requestAvatar", in my portal)
Here is my Database Manager: (you will actually see that I 'turned
off' the deferToThread wrapping for now):
but I really haven't convinced myself that this is the best way of doing things.
Hell, it could be totally wrong, so if anyone has any advice, I would
be very appreciative!
> I'm aware of sAsync,
> but haven't looked much into it. (I'm a step or two behind you, actively
> using adbapi, and thinking about moving to SA when I get some breathing
I've looked into SAsync as well, but it is not totally clear to me
what the extra benefit of it is (again, anyone who has a good
description, please tell)
The main developer of sAsync use to post to this mailing list, but I haven't
seen him post in a fairly long while.
So, if others are thinking about using SQLAlchemy with Twisted, let's
discuss it more.
Thanks very much,
Hello, Twisted community:
I'd really like "twisted" (and our various "dot product" subprojects) to
be a trademark that the software freedom conservancy can protect and
defend. For similar reasons, I'd like to have an unambiguous naming
convention for projects which are *part* of Twisted versus those which
are built on it or are compatible with it.
There are a few projects out there that just call themselves "py-
whatever" but use Twisted (for some reason, none come to mind at the
moment); that's fine, of course. The jabber transports which use
Twisted are pyMSNt, pyICQt; I'm not sure if the "t" stands for
"transport" or "twisted" :). There are also a few projects out there
called "Twisted Whatever" which aren't part of Twisted; I can only hope
that more projects will want to advertise their association with Twisted
in this way.
I'd like to suggest, however, that new projects use the word "Twisty" in
this context rather than the hopefully trademarked "Twisted". i.e. if
you are making an implementation of the protocol Bloobloo and want to
give it a name associated with Twisted, please describe it as "Twisty
Bloobloo: an implementation of bloobloo for Twisted", and name your
packages similarly (twistybloobloo.stuff). Sun has a great webpage
about how to use their trademarks in this capacity:
I'm aware of 3 projects which are currently called "Twisted X" but are
not actually a part of Twisted. The first is Twisted Goodies, which was
named with our explicit permission. I appreciate that Ed asked first,
and so he is welcome to continue using that name. (I'd still prefer
that it be changed to "Twisty Goodies" just to help establish the
convention and reduce potential user confusion, but realistically there
has not been any actual user confusion about that package, and packages
with our explicit permission I don't believe weaken our copyright
Two other things that I'm aware of using names like this, however, do
not have our permission, and if those authors are listening here (or if
someone who knows the authors here could get in touch with them) I'd
really like their names to be changed: Twisted SNMP and Twisted Storage.
Most of all though I hope that all 1000-odd subscribers to this list
have their own soon-to-be-released project which can make use of this
new convention ;).
Also, if a graphic designer out there could help with a modified version
of the logo that could be used in the way that the Debian "open use"
images, that would be helpful: http://www.debian.org/logos/#open-use
I want to group several calls to a function() that returns a deferred into a
DeferredList so that I can add
callbacks that will fire once each call to function() has returned.
Furthermore, I want to arrange it so that this process repeats every X
The problem I'm having is understanding how I can combine the concept of a
DeferredList with task.LoopingCall in this scenario. Or is that even the
right approach to take?
I have a twisted application in production for some time now, running
under Fedora Core 6, Python 2.4.4 and twisted 2.4. I know, a little
The process was running fine for some weeks without any problems,
although I got this exception in my logs and I really have no idea
what it means. The process did not die and is still running ok.
2008/05/13 16:03 BRT [-] Traceback (most recent call last):
line 278, in run
line 197, in runApp
app.runReactorWithLogging(config, oldstdout, oldstderr)
line 131, in runReactorWithLogging
line 218, in run
--- <exception caught here> ---
line 229, in mainLoop
exceptions.SystemError: unknown opcode
I am trying to create a chat bot that can work over both the XMPP and the
MSN protocol using Twisted words. I have a couple of questions as a Twisted
Is there any documentation on how to create a protocol-agnostic chatbot with
Twisted words? Or are there applications using Twisted words that offer
I have a XMPP version working, but had some problems finding my way around a
few features. I don't know how to get a list of contacts, or initiatiate a
group chat. Even if I succeed in doing this, would it be possible to
generalize this for both XMPP and MSN?
Finally, I was wondering how mature Twisted words is. It seems to work well
for XMPP, but how mature is the MSN support? Are there other libraries I
could consider, or is it possible to generalize other libraries within
Thanks in advance!
-- Jo Vermeulen
>When choosing which prefix to use, I would suggest against being too
>concerned with which obscure software project already uses it.
>ToscaWidgets is still in alpha according to their webpage, which
>hasn't been updated in ages. I don't mean to deride another project,
>but considering the high rate of failure of most OSS projects, unless
>it has a community inertia as large as or larger than Twisted's, I say
>every project for itself.
I would be tempted to use a prefix like tsf or twsf so there is a closer association to the Twisted Software Foundation, the entity that is the custodian of Twisted. I know little about trademark law (especially in the U.S) but I think there are benefits when the legal entity and the product/service share a name (trade name)
On Fri, May 30, 2008 at 11:50 AM, <twisted-python-request(a)twistedmatrix.com>
> Send Twisted-Python mailing list submissions to
> To subscribe or unsubscribe via the World Wide Web, visit
> or, via email, send a message with subject or body 'help' to
> You can reach the person managing the list at
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Twisted-Python digest..."
> Today's Topics:
> 1. Re: suggestions for naming to help us preserve a Twisted
> trademark (Jonathan Lange)
> 2. How-to raise errors with sshclient conch example in Twisted
> book (asset)
> 3. Re: suggestions for naming to help us preserve a Twisted
> trademark (glyph(a)divmod.com)
> 4. Re: suggestions for naming to help us preserve a Twisted
> trademark (Drew Smathers)
> 5. Re: suggestions for naming to help us preserve a Twisted
> trademark (Gabriel Rossetti)
> 6. Re: suggestions for naming to help us preserve a Twisted
> trademark (Chris Miles)
> 7. Re: suggestions for naming to help us preserve a Twisted
> trademark (Simon Pickles)
> 8. Re: How-to raise errors with sshclient conch example in
> Twisted book (Kuba Konczyk)
> 9. Re: suggestions for naming to help us preserve a Twisted
> trademark (Michael)
> Message: 1
> Date: Fri, 30 May 2008 13:09:20 +1000
> From: "Jonathan Lange" <jml(a)mumak.net>
> Subject: Re: [Twisted-Python] suggestions for naming to help us
> preserve a Twisted trademark
> To: "Twisted general discussion" <twisted-python(a)twistedmatrix.com>
> Content-Type: text/plain; charset=ISO-8859-1
> On Fri, May 30, 2008 at 12:16 PM, Tim Stebbing <tjstebbing(a)gmail.com>
> >> More seriously, Emacs, Apache, Linux, Python, Debian and Ubuntu are
> >> all trademarked. The Emacs trademark is held by the FSF, bastions of
> >> ideological purity. So far, I've encountered only one person who finds
> >> this suspicious. Hi Tim :)
> > 'other people do this thing so we should also do this thing' is not a
> > great argument. I'm not against the idea, I just have some questions
> > we're yet to have answered.
> That's not what I said.
> You said "trademarks make people suspicious". I provided
> counter-examples, demonstrating that your statement is not true in the
> general case.
> Message: 2
> Date: Thu, 29 May 2008 20:40:32 -0700
> From: "asset" <asset(a)impactdamage.com>
> Subject: [Twisted-Python] How-to raise errors with sshclient conch
> example in Twisted book
> To: <twisted-python(a)twistedmatrix.com>
> Content-Type: text/plain; charset="iso-8859-1"
> Ref: http://www.devshed.com/c/a/Python/SSH-with-Twisted/4/ =
> Im new to Twisted and am trying to learn as quickly as I can. I apologize
> if this question is a waste of anybody's time.
> When working the with sshclient.py example (from the Twisted book, and the
> link above) I find the reactor hangs and does not raise an exception on
> nection failures or failed authentication.
> Ive been trying to work out how to catch these situations and shut down
> reactor; or cleanup for another attempt, yet I cant seem to wrap my head
> round it.
> I imagine this is trivial and Im totally missing it.
> Any help would be greatly appreciated.