Is there a way to use autoincrement in axiom ? I need a property in my model
that reflects the last row id after every insert operation. Also, is it
safe to use non-db variables in axiom model ? something like
name = attributes.text()
surname = "my non db variable"
The interpretor does throw an error but that can be overcome by using
self.__dict__['surname'] = "non db" . Just wanted to know if this is
recommended or not
sorry, if this' already been answered; i did search but couldn't find the
I used the code from this thread to figure out how to use
the twisted.conch.telnet.AuthenticatingTelnetProtocol class:
(with the addition of av.state = 'Command' in requestAvatar(), it works great)
However, after the handoff to the new protocol MyTelnet, self.factory
isn't set. How can I pass along the parent factory from the
AuthenticatingTelnetProtocol instance to the StatefulTelnetProtocol instance?
Sorry if this isn't phrased correctly - I'm new to Twisted.
I am trying to understand how basic authentication can be used with
twisted.web. twistedmatrix provides an example on the same which is
when I use this example code to login, it works fine but returns with double
slash '//' in url before index file or rather for any file accessed. like:
it will work for all files with double slash
but will return index page for any request with single slash
>> http://localhost:8889/anything.html/ will always return index page.
Please help me figuring out what is the problem and what can be possible fix
Can anyone explain this result to me?
It looks to me as though the SelectReactor is leaking file descriptors.
Granted, it's a pathological case, but it's not uncommon if you're
running a bunch of tests.
rich(a)black.noir.com> cat demo.py
from twisted.internet.selectreactor import SelectReactor
for i in xrange(1024):
rich(a)black.noir.com> python demo.py
Traceback (most recent call last):
File "demo.py", line 4, in <module>
line 72, in __init__
line 471, in __init__
line 266, in installWaker
self.waker = _Waker(self)
line 128, in __init__
self.i, self.o = os.pipe()
OSError: [Errno 24] Too many open files
rich(a)black.noir.com> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu lucid (development branch)
I looked at the source for the threads module and wondered if the
current Twisted supports Python's (2.6) multiprocessing threading?
If not, is there a stable package somewhere that patches Twisted to
support this? I saw one from last summer but not sure if its stable.
There's a bunch of cool stuff on
http://twistedmatrix.com/trac/wiki/PyconSprint2010 about what we did
at the sprint in PyCon.
I want to write this up & blog about it for labs.tm.com, but before I
do that, I'd like you to look at that page and tell me if anything is
missing -- no matter how small. In particular, if you attended and
your name isn't there, I want to hear from you.
We inch ever closer to the precipice of our collective doom. The sun
will one day burn cold; all things must end; Twisted shall be
I've uploaded 10.0.0pre2 tarballs to
http://people.canonical.com/~jml/Twisted/. The changes since the pre1
are mostly to do with version numbers in documentation, and rolling
back a fix for #3292 that introduced failures on our Fedora test
I hope to release the final tarball sometime next week.
first of all: I've no experience with network-programming yet, but need to go in for creating a "simple" client-server application.
In the end I'd like to connect a web-form (django) with a twisted-server, which then should do some long-lasting calculations.
So far I got a simple xmlrpc-server, which "defers" the calculation to a new thread and a client which sends the initial request to do the calculation. Though I have the problem that the client stays connected until the calculations are done.
Could someone tell me if it's somehow possible to disconnect the client right after sending the request to the server?