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'd like to organize another Twisted sprint in Cambridge, MA in February.
As with previous sprints, this is an all day event, most likely hosted at
the Divmod office in Porter Square, for Twisted hacking. The two topics
which have been raised thus far for this sprint are documentation - in
particular, looking at Twisted documentation from a high-level and coming
up with a coherent overall strategy for improving it - and deprecation
(looking for old, bad APIs in Twisted which we should get rid of). Of
course, other topics are welcome as well.
Which weekend in February would work best for people interested in attending?
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,
I'm writing a smtp-client application with twisted.mail. Testing the
application, I noticed that timeout doesn't work in some case if
client started starttls session. If smtp-server stops responding
after DATA command was sent from client, calling
transport.loseConnection() doesn't close connection.
I found ticket # 2827 reports connector.disconnect() doesn't work for
ssl connection if the server doesn't send any data.
Is there a workaround to disconnect ssl connection?
The question of whether anyone had developed a C++ implementation of
Twisted's Deferreds has cropped up on this list several times over the last
few years. To date, I've unfortunately been forced to sit on an
implementation I developed several years ago for the Department of Defense.
Due to some rather draconian IP & security policies, it's taken an
exceptionally long time to get the code released. I'm happy to announce
though that I finally managed to obtain release authorization for it and
that the code now has a new home on Sourceforge.
As C++ has differing language features, the API of the C++ deferreds
isn't identical to those of Twisted's but most of the key concepts mapped
over pretty well. Additionally, this implementation has a few design
extensions to facilitate the development multi-threaded C++ applications.
The multi-threaded aspect grew almost accidentally out of the original
single-threaded design but, since then, it has proven to be extraordinarily
useful for simplifying several multi-threaded applications I've worked on.
The implementation of the library is, however, rather complex. In large
part, this is due to the effort required to work around the inherent
inflexibility of the C++ type system. The Function, Bind, and
Meta-Programming libraries found in Boost have gone a long way towards
simplify the implementation though (my original Loki-based attempt was
almost incomprehensible even to me ;-). The library is fully documented
though so as long as you're reasonably comfortable with C++ templates, it
should be understandable.
So far, the library has only been exposed to a handful of individuals
for review. I'd be interested to hear the comments anyone has about the
design and/or implementation approach. The code is available at:
We're building out a service, launching in the next 30 days, that provides
low-latency elastic caching in the AWS environment - more info at
http://cloudscape.ws . The service is purely ReSTful and uses an
authentication approach which is consistent with other AWS services
(signature is HMAC hash of service+operation+timestamp with secret-key).
We would like to commission the development of an open source Twisted module
that takes advantage of CloudCache. It should be as close as possible to
the twisted memcache interface, perhaps requiring only a change in the
I can provide basic python test cases for all API methods.
BTW [OT], would also be interested in non-twisted replacements of other
popular memcached libs, similar constructor-only diffs in the interface.
If interested, please reply with qualifications and experience with twisted
and memcached, and a ballpark of what kind of commission / bounty you think
would be fair.