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?
First, a public service announcement about code-reviews: I'm not
a Twisted Developer, I'm just a guy who submitted a patch and got talked
into helping out by reviewing other people's Twisted patches while I was
waiting for other people to review mine. You don't have to be a Twisted
expert to help out, and don't worry about whether you're experienced
enough to spot every possible problem - most patches get reviewed *at
least* two or three times by different people, and every problem you
pick up and the developer addresses is one less issue the next reviewer
has to think about.
As I've started reviewing over the past week or two, the developers
whose code I've reviewed and the regulars in the #twisted IRC channel
have all been super-helpful, and I highly recommend code-reviewing as
a pleasant way to spend an idle afternoon. Everything you need to know
to get started should be listed here:
As I mentioned above, I've been doing Twisted code-reviews recently, and
I've seen a few tickets in particular I thought the general Twisted
community might like to know about, if not help out with. :)
Add arraysize option to runQuery in adbapi
- The "arraysize" property is the only writable cursor property defined
by DBAPI2. Setting it can make the .fetchall() method faster with
some DB modules, but Twisted's adbapi module offers no way to set it.
- This ticket has a patch that adds an "cp_arraysize" keyword argument
to ConnectionPool.runQuery() to set the .arraysize property, but this
could interfere with DB modules that accept a "cp_arraysize" keyword
parameter to cursor.execute().
- I looked up the API docs for as many Python DB modules as I could
think of, and none of them attach any significance to
a "cp_arraysize" keyword parameter.
- However, at least cx_Oracle supports using keyword parameters for
populating parameterised queries, like this:
cursor.execute("select :name from dual;", name="Fred")
So, my questions to the Twisted community are:
- How many of you are using adbapi.ConnectionPool with cx_Oracle, or
another DB module that supports arbitrary keyword arguments to
- Of those, how many of you are using parameterised queries or prepared
statements with placeholders named "arraysize" or "cp_arraysize"?
A fresh Twisted checkout should support "setup.py sdist"
- Occasionally people ask about building RPMs of Twisted with
"./setup.py bdist_rpm"; this ticket is the first step in getting that
working - the rest of the process is #1696.
- I'm not sure if it helps with other kinds of bdist, like
"bdist_wininst" or "bdist_msi" - if it does, and you've been waiting
for that, then you might want to help review the code and check it
works properly on your platform!
subunit reporter. FTW.
- This ticket adds another test-reporter to Twisted Trial, one that
outputs results in a format that can be parsed by the tools in the
third-party "subunit" project, https://launchpad.net/subunit
- Among other things, this would help integrate Python tests with test
results from other systems (tap2subunit, subunit2junitxml), compare
the results of different test-runs (subunit-diff), and enable cute
GUI-based test-runners (subunit2gtk).
- If subunit sounds like a tool you would find useful, you might want
to help review the code!
I use _threadedselect reactor. My waker its one line:
its send event, to pygame queue.
My pygame loop:
_tick = Tick()
for event in self._eventIterator():
if event.type == NOEVENT:
elif event.type == TWISTEDEVENT:
if not reactor.running:
When I need to quickly perform some function, I set the parameter
PygameController._ticking to True, and my manager call some function.
When I need to perform some function with a time interval of more than
one second, I use LoopingCall. Its work.
When I need to perform some function with a time interval of less than
one second, LoopingCall too slow. I try use my ticking, but for
function is not executed too often, I used the following code:
looping_instance = self.looping
call = looping_instance.call
if call and call.time - call.seconds() <= 0:
but I get this traceback when I stop looping (LoopingCall.stop()):
line 779, in runUntilCurrent
line 196, in __call__
line 199, in addErrback
line 181, in addCallbacks
--- <exception caught here> ---
line 323, in _runCallbacks
self.result = callback(self.result, *args, **kw)
line 191, in eb
exceptions.AttributeError: 'NoneType' object has no attribute 'errback'
Hello again, and welcome to another update on the Twisted Lore to Sphinx
Current Sphinx results are in the usual place at:
Here's what's new:
- The lore2sphinx conversion script is now up on bitbucket. You can find it
here: http://bitbucket.org/khorn/lore2sphinx/ .
Special thanks to Steve Steiner (ssteinerX) for helping out a bitbucket
- lore2sphinx now reads input and output directories from a config file.
The config file can have one or more "profiles", each of which contains
config info for a set of documentation. At present, the script just uses the
default profile (set in the config file), but I'll add a command line switch
to specify the profile Real Soon Now (tm), which will make it easy to use a
single config file for multiple projects (e.g. twisted, nevow, mantissa,
- lore2sphinx has also been refactored a bit, which solves a lot of
whitespace handling issues. The Sphinx build now gives fewer than 100 errors
(currently 65, started off in the 500-600 range)! Hooray! Still, not all
of the output is fully correct, and some tags (notably tables) are still
- I still haven't started any work on a theme...I'll get to it eventually,
unless someone else does first. Any volunteers?
- Divmod docs: new config file support is a step in this direction, look for
- PyOpenSSL docs: kind of a sideline to this so I haven't really moved
forward on this yet, but I will eventually
If anyone out there would like to help out, I can certainly use the
assistance. Lore2sphinx could probably use some extra eyeballs and brains
looking at it, thought the basic structure is pretty much laid out. Any
If you're intimidated by the idea of working on the actual lore2sphinx
conversion script (or just don't want to), here's some other stuff that
- work on a twisted (or Divmod) Sphinx theme which at least mostly matches
the website (or the Divmod website)
- identify branches which have lore patches in them
- identify tickets which propose to fix/modify Lore functionality
- identify wiki pages that need to be changed, and the necessary changes
- make suggestions on the overall conversion process, as documented in the
I'm sure I'll manage to get all this done eventually, but with more people,
it will get done sooner. And sooner is better. :)
If you'd like to help out with one (or more) of these tasks, just give a
shout here, or email me off-list.
I've just noticed the transaction_timestamp is actually way (up to
several minutes) before the database proc gets called. I'm on
postgresql 8.4 so the transaction_timestamp is when the transaction
started, and I compared it against the clock_timestamp (absolute
current time) and it is quite a bit off.
Does adbapi start transactions before any method (ie runQuery) is called?
Or should I be looking at the underlying database driver to this behaviour?
Hello guys, this are my first steps into twister and this is my first
app with twister, using examples from the twisted documentation and
reading it a lot ( interfaces are still not for me ), I've come to
My goal for now is to create my own client and be able to retrieve
mail :) well it's done, but my question to the experts is to know your
opinions about my code, to see if I can implement any best practice in
order to have a decent app, in fact to hear from you how do you find
PD: Sorry for my English, saludos desde Costa Rica.
Thanks a lot !