Re: [Twisted-Python] sending file but LineReceiver doesnt run

2008-11-25 Thread Jean-Paul Calderone
On Tue, 25 Nov 2008 12:41:46 +0200, Aydın ŞEN <[EMAIL PROTECTED]> wrote: Hi, I am trying to send file which is in the client's disk, i am using LineReceiver in the server side. I am sending and receiving data like login stuff but when i start to read & send file LineReceiver method doesnt run in

Re: [Twisted-Python] sending file but LineReceiver doesnt run

2008-11-25 Thread Jean-Paul Calderone
On Tue, 25 Nov 2008 17:29:16 +0200, Aydın ŞEN <[EMAIL PROTECTED]> wrote: Thank you very much.. if i send file per 1KB does it cause lack of performance? If you try to send a file like this, then any newlines it contains will be lost. Performance doesn't matter much if your results are wrong.

Re: [Twisted-Python] SSL Client Certificates?

2008-11-25 Thread Jean-Paul Calderone
On Tue, 25 Nov 2008 12:09:19 -0700, asset <[EMAIL PROTECTED]> wrote: Would I be right in assuming that the example echoserv_ssl.py and echoclient_ssl.py will only result in encryption from the client to server and not from the server back to the client? Im referencing these examples specifical

Re: [Twisted-Python] how to design protocol.

2008-12-01 Thread Jean-Paul Calderone
On Mon, 1 Dec 2008 15:19:47 +0200, Aydın ŞEN <[EMAIL PROTECTED]> wrote: Let me explain my problem.. I am building an uploader application using twisted. I am using "Protocol" in both side. What is the best way to seperate data? When i try to call "self.transport.write(data)" it doesnt send data

Re: [Twisted-Python] Create a standalone Unix executable for a Twisted application?

2008-12-01 Thread Jean-Paul Calderone
On Mon, 1 Dec 2008 14:45:37 +0100, Alessio Pace <[EMAIL PROTECTED]> wrote: Hi, I'm pretty new to Python and Twisted, and I would like to know if anyone could share some experiences in creating a standalone Unix executable for a Twisted application I'm building. I would like in fact to distribut

Re: [Twisted-Python] Twisted with PyQt

2008-12-02 Thread Jean-Paul Calderone
On Tue, 2 Dec 2008 14:29:54 +0200, Aydın ŞEN <[EMAIL PROTECTED]> wrote: Hi, i am using qt4reactor with twisted. My app structure is below: i have pyqt class [snip] i am updating my progressBar from Upload class, but window is freezing when i do it (only progressBar isnot, others are freezing w

Re: [Twisted-Python] www.lua.org with twisted.python

2008-12-02 Thread Jean-Paul Calderone
On Tue, 2 Dec 2008 14:45:49 +0100, Sven-Erik Tiberg <[EMAIL PROTECTED]> wrote: Hi Looking at lua as a possbile network protocol for distributed simulations. Anyone used www.lua.org in twisted. Pro and Con? As far as I know, Lua isn't a network protocol, so your question doesn't seem to make se

Re: [Twisted-Python] how to get the user's input

2008-12-02 Thread Jean-Paul Calderone
On Tue, 2 Dec 2008 21:38:18 +0800, lei ren <[EMAIL PROTECTED]> wrote: hello ,everybody: i am a new to use the twisted. i woul'd like to complete a WEBGAME with it.but i have a problem for the twisted i have complete the server ,and the simple client.but ,i want to the client have more function.

Re: [Twisted-Python] Strange downloadPage behavior with embedded Python

2008-12-04 Thread Jean-Paul Calderone
On Thu, 4 Dec 2008 10:28:46 -0500, James Joplin <[EMAIL PROTECTED]> wrote: We have been using python embedded via the C API and have used Twisted for various things. We have come across some strange behavior and I cannot figure out what is going on. from twisted.internet import reactor from tw

Re: [Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread Jean-Paul Calderone
On Tue, 09 Dec 2008 17:12:32 +0100, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: tarjei wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Rossetti wrote: Hello eveyone, is there a way to see how many msgs have been received and are waiting to be processed by a client? Hi, I think

Re: [Twisted-Python] spawnProcess help needed

2008-12-09 Thread Jean-Paul Calderone
On Tue, 9 Dec 2008 15:43:00 -0500, Phil Christensen <[EMAIL PROTECTED]> wrote: Hello All- I'm running into an issue with a project I'm working on that involves coordinating a large number of external processes to encode audio into different formats, and do other bookkeeping. I seem to be hav

Re: [Twisted-Python] wxpython and xmlrpc via twisted

2008-12-09 Thread Jean-Paul Calderone
On Tue, 9 Dec 2008 15:27:00 -0800, Ian Jones <[EMAIL PROTECTED]> wrote: I'm trying to create a taskbar app (in wxpython) to monitor job progress on a render farm. I'd like the taskbar app to have an xmlrpc server built in so that other applications can inform the taskbar app additional jobs to mo

Re: [Twisted-Python] wxpython and xmlrpc via twisted

2008-12-10 Thread Jean-Paul Calderone
On Wed, 10 Dec 2008 08:54:49 -0800, Ian Jones <[EMAIL PROTECTED]> wrote: "There's probably no good reason to subclass both of these" I'm relatively new to python so sorry if this should be obvious - but how else would I get the functionality of both classes if I did subclass both of them? Crea

Re: [Twisted-Python] lost tracebacks?

2008-12-10 Thread Jean-Paul Calderone
On Wed, 10 Dec 2008 22:08:52 -, [EMAIL PROTECTED] wrote: On 08:42 pm, [EMAIL PROTECTED] wrote: I was hoping for a "real" traceback because Paste's EvalException middleware does a nice job debugging "live" stacks, but the 'verbose' stack is a pretty decent stand-in. There's a good reason

Re: [Twisted-Python] twisted.mail.relaymanager.MXCalculator.getMX in Win32 got problem

2008-12-13 Thread Jean-Paul Calderone
On Sat, 13 Dec 2008 08:46:07 +0800, biziap biziap wrote: The problem is that: the UDP listening ports increase rapidly and eventually come to the end: too many open file in selector. As many as the hosts you lookup, those UDP ports are still alive. It is very different from running this script i

Re: [Twisted-Python] Non-blocking http client?

2008-12-13 Thread Jean-Paul Calderone
On Sat, 13 Dec 2008 10:08:43 -0800, Erik Wickstrom wrote: Hi all, I have an application that is doing some web spidering. Right now I'm using urllib to retrieve the URLs, but it is painfully slow. I was wondering if it's feasible to swap out urllib with a twisted client that uses deferds so

Re: [Twisted-Python] twisted eat the memory

2008-12-15 Thread Jean-Paul Calderone
On Mon, 15 Dec 2008 20:31:39 +0300, Muaaz Hussain wrote: I wrote web application on twisted and my application read from ulogd daemon and push the output to the client browser using AJAX .also I have another application displaying ethernets traffic using AJAX. but after some minutes the twiste

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Jean-Paul Calderone
On Thu, 18 Dec 2008 14:35:00 +0100, Gabriel Rossetti wrote: Hello everyone! I have a problem, if I try to use python property in a twisted program, it doesn't really work...the accessor works but as soon as I use the mutator, it no longer uses the property (and doesn't set the "real" variabl

Re: [Twisted-Python] SSH Server with commands filtering

2008-12-18 Thread Jean-Paul Calderone
On Thu, 18 Dec 2008 15:38:55 +0200, Tzury Bar Yochay wrote: Hi, I am willing to deploy on my server an SSH daemon which I can control what commands can be executed, and by who. After playing with jailkit [link] I realised that implementing my own SSH server will give me more power and scalabilit

Re: [Twisted-Python] SSH Server with commands filtering

2008-12-18 Thread Jean-Paul Calderone
On Thu, 18 Dec 2008 18:55:12 +0200, Tzury Bar Yochay wrote: On Thu, Dec 18, 2008 at 4:01 PM, Jean-Paul Calderone wrote: On Thu, 18 Dec 2008 15:38:55 +0200, Tzury Bar Yochay wrote: Hi, I am willing to deploy on my server an SSH daemon which I can control what commands can be executed, and

Re: [Twisted-Python] how to get an idle callback while running a reactor?

2008-12-20 Thread Jean-Paul Calderone
On Sat, 20 Dec 2008 07:10:53 -0700, Joe Strout wrote: I'm trying to make a simple AIM bot that, in addition to responding when I talk to it, can also send me a message on its own initiative. My code is based on SkippyTalkBot [1], but I confess that I don't understand it very well, and though

Re: [Twisted-Python] Question on logging.

2008-12-28 Thread Jean-Paul Calderone
On Sun, 28 Dec 2008 02:05:32 -0800, Shawn Church wrote: My problem is that PyAmf uses the standard Python logging module and twisted uses it's own logging module. I would like to have a single logging mechanism that can be specified via twistd. I would also like to have more control of the ou

Re: [Twisted-Python] FTP LIST

2008-12-28 Thread Jean-Paul Calderone
On Sun, 28 Dec 2008 11:52:56 +, Simply for IT wrote: Hi Everyone, I just have started to study twistedmatrix in my spare time couple of weeks ago. I am satisfied with the books, but as they are very terse, and they are not really FTP related, I could not figure out how the FTP is working.

Re: [Twisted-Python] Twisted and Urwid

2008-12-28 Thread Jean-Paul Calderone
On Sun, 28 Dec 2008 17:28:14 +0100, Christian Scharkus wrote: Hi Cary. I have seen it but I would prefer just to add my Input-Class as a Reader to the reactor instead of using the twisted_main_loop. I have just the problem that I have no idea how I make urwid start in the beginning. Perhaps

Re: [Twisted-Python] FTP LIST

2008-12-30 Thread Jean-Paul Calderone
On Tue, 30 Dec 2008 20:55:11 +, Simply for IT wrote: Hi Jean-Paul, thank you for your reply. I need to implement a new IFTPShell, right? I have tried to create a new class (with a list method), which is inherit

Re: [Twisted-Python] spawning tasks after reactor?

2008-12-31 Thread Jean-Paul Calderone
On Wed, 31 Dec 2008 09:37:26 -0500, Darren Govoni wrote: Hi, I'm new to twisted and have a simple question. I want to run a threaded server that monitors a remote service and spawns queued/threaded tasks as it finds messages. Queued/threaded tasks? That do what? I'm having trouble underst

Re: [Twisted-Python] spawning tasks after reactor?

2008-12-31 Thread Jean-Paul Calderone
On Wed, 31 Dec 2008 10:51:38 -0500, Darren Govoni wrote: Hi Jean-Paul, Thank you for those suggestions. I can post some simple code after I get further. The psuedo code of what I want to do is like this: every few seconds, check a message queue (I see how this is done): if there is a message,

Re: [Twisted-Python] Best place to put application code

2009-01-02 Thread Jean-Paul Calderone
On Fri, 2 Jan 2009 10:14:40 +, John Aherne wrote: One thing that has been puzzling me is where is the best place to put application code. It depends. :) The case I am using is straightforward TCP server with client connections making simple requests and waiting for responses retrieved f

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-09 Thread Jean-Paul Calderone
On Fri, 9 Jan 2009 15:13:10 +0100, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon wrote: You shouldn't bind your client on a port where your server is listening to. I'm following what is written in "Peer-to-Peer Communication Across Network Address Translators" in order t

Re: [Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread Jean-Paul Calderone
On Sun, 11 Jan 2009 15:55:03 -0800, Rob Bredow wrote: I've implemented a twisted server using the basic.lineReceiver class. The client is a socket based client implemented in flash and the connections are long-lived (minutes or hours). To handle cleaning up the players when they disconnect, I'

Re: [Twisted-Python] How to listen on and connect from same TCP port with Twisted?

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 10:23:00 +0100, Alessio Pace wrote: On Sat, Jan 10, 2009 at 10:24 AM, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:29 PM, Jean-Paul Calderone wrote: On Fri, 9 Jan 2009 15:13:10 +0100, Alessio Pace wrote: On Fri, Jan 9, 2009 at 3:01 PM, Alvin Delagon wrote: You

Re: [Twisted-Python] Manhole and StandardIO

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 23:09:40 +0100, Zoran Bosnjak wrote: Hello all, I would like to have a simple console python interactive shell, powered by twisted. I am looking for something like this... --- from twisted.internet import reactor, stdio from twisted.conch.manhole import Manhole stdio.Stand

Re: [Twisted-Python] Manhole and StandardIO

2009-01-12 Thread Jean-Paul Calderone
On Mon, 12 Jan 2009 22:53:29 -, gl...@divmod.com wrote: On 10:21 pm, exar...@divmod.com wrote: On Mon, 12 Jan 2009 23:09:40 +0100, Zoran Bosnjak wrote: Hello all, I would like to have a simple console python interactive shell, powered by twisted. See twisted/conch/stdio.py for examples

RE: [Twisted-Python] Manhole and StandardIO

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 10:08:06 +0100, Zoran Bosnjak wrote: StandardIO accepts an IProtocol provider as an argument. Manhole does not implement IProtocol, it implements ITerminalProtocol. So you cannot use these two classes together like this. See twisted/conch/stdio.py for examples of how to us

Re: [Twisted-Python] connectTCP() passing a ClientFactory: how to get the local port of the created client socket?

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 15:34:19 +0100, Alessio Pace wrote: Hi, I'm having some difficulties in trying to figure out how to get a reference to the connector or anyway the local port to which a client socket is bound in a reactor.connectTCP() call, where the bindAddress is not passed as parameter, t

Re: [Twisted-Python] IPushProducer problem

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 16:34:29 +0100, Gabriel Rossetti wrote: Hello everyone, I implemented a push-produce a while back and I though it works, but it didn't. When the msgs where spaced out, it worked, but if several msgs were sent one after the other, then things go bad (the msgs get mixed up)

Re: [Twisted-Python] django with twisted 8.2.x: 2009

2009-01-14 Thread Jean-Paul Calderone
On Wed, 14 Jan 2009 17:48:39 -0500, V S P wrote: Hi, wanted to ask for some help in getting django running with twisted webserver for my experiments. Using Python 2.6 Twisted 8.2.0 Django 1.0.2 on windows xp for now. I searched the documentation , most of the blog entries/etc were in '07 about

Re: [Twisted-Python] TCP: can't redo connectTCP() from same local port if server did not explicitly close connection ??

2009-01-15 Thread Jean-Paul Calderone
On Thu, 15 Jan 2009 11:44:44 +0100, Alessio Pace wrote: Hi, I would like to have a client connect via TCP to a server (say, server "A"), then the client close the connection and connect via TCP to another server (say, server "B") using the same TCP port that was bound locally while connecting t

Re: [Twisted-Python] Mailing list archive search?

2009-01-19 Thread Jean-Paul Calderone
On Mon, 19 Jan 2009 11:59:28 -0500, David Karnowski wrote: Is there a search function available for the mailing list archives? I don't see a search field anywhere. Am I missing something obvious? The search field on your home page appears to ju

Re: [Twisted-Python] pb: callRemotes execute serially on server-side

2009-01-19 Thread Jean-Paul Calderone
On Mon, 19 Jan 2009 13:42:14 -0500, David Karnowski wrote: Hi all, I'm having a client-side pb app call the same server-side function 10 times with this client-side code: def process_test(rootObject): for i in range(10): _logger.debug("Calling remote with arg: %d" % (i)) de

Re: [Twisted-Python] RE: Write into a persistent connection before stopping

2009-01-26 Thread Jean-Paul Calderone
On Mon, 26 Jan 2009 16:12:57 +0100, "Boeuf, Jean-Francois" wrote: Hi, As i didn't get any answer to my problem i writed a little test code to reproduce it (I can't divulgate the production code, and then it would be to much complicated to expose the matter). You can just run it using twistd -y

Re: [Twisted-Python] A Java protocol on Twisted?

2009-01-26 Thread Jean-Paul Calderone
On Thu, 22 Jan 2009 09:14:48 +0100, Alessio Pace wrote: Hi, recently I was asked if it would be possible to plug a Java protocol in a Twisted-based P2P library I'm working on. Up to now this heterogenous languages integration was not a concern, but apparently the possibility to write an high l

Re: [Twisted-Python] Truncated exception message for reactor instance

2009-01-26 Thread Jean-Paul Calderone
On Fri, 23 Jan 2009 13:17:32 -0500, Kangkook Jee wrote: Hi all I'm a Twisted newbie and I have a question about exception handling of Twisted framework. Whenever I got some exception raised from somewhere, I got truncated exception message like this. >>>Traceback (most recent call last):

RE: [Twisted-Python] RE: Write into a persistent connection befor estopping

2009-01-26 Thread Jean-Paul Calderone
On Mon, 26 Jan 2009 17:07:23 +0100, "Boeuf, Jean-Francois" wrote: [snip] I'm Ok with that but it is no more than test sample code. The server does write periodically the connection but doesn't send "Connection closed because of server shutdown" whereas the onStop method is correctly called!

[Twisted-Python] Twisted Sprint in February

2009-01-26 Thread Jean-Paul Calderone
Hello All, 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

Re: [Twisted-Python] Twisted Sprint in February

2009-01-27 Thread Jean-Paul Calderone
On Tue, 27 Jan 2009 22:27:25 -, gl...@divmod.com wrote: On 07:30 pm, ra...@twistedmatrix.com wrote: I could sprint this weekend. The trip is two weeks, so I could feasibly also sprint on the Sunday the 22nd (with the chance of jetlag). Any other weekend is probably good, I'm just unavailable

Re: [Twisted-Python] multiple log files

2009-01-27 Thread Jean-Paul Calderone
On Tue, 27 Jan 2009 15:05:46 -0800, Ted Pederson wrote: I am new to twisted. If I understand it correctly, the framework doesn't support multiple log files. You can implement any logging policy you want. See the logging documentation (

Re: [Twisted-Python] Getting involved in Python 3.0 porting

2009-01-27 Thread Jean-Paul Calderone
On Tue, 27 Jan 2009 19:08:15 -, gl...@divmod.com wrote: On 05:12 pm, ceron...@gmail.com wrote: This year I'm going to start my graduation project for software engineering and I want to use Python and Twisted. I want to use Python 3.0 but unfortunately, Twisted doesn't support 3.0 yet and I'

Re: [Twisted-Python] Getting involved in Python 3.0 porting

2009-01-27 Thread Jean-Paul Calderone
On Tue, 27 Jan 2009 18:37:39 -0800, Michael Pyle wrote: On Tue, 27 Jan 2009 19:08:15 -, gl...@divmod.com wrote: [snip] So the first thing you should do is find, file, and fix as many tickets as you can related to warnings in tests; warnings from Twisted itself, warnings from the stdlib, w

Re: [Twisted-Python] getting "can't serialize output " error while returning numeric data from postgresql.

2009-01-28 Thread Jean-Paul Calderone
On Wed, 28 Jan 2009 16:50:10 +0530, Krishnakant wrote: hello all, I think this must be a simple thing and many of you might be knowing the solution, But I am new to twisted and for me this is a big challenge. I am connecting my xmlrpc based twisted application (server ) to a postgresql database

Re: [Twisted-Python] Re: How can I disconnect ssl connection from the client side?

2009-02-02 Thread Jean-Paul Calderone
On Mon, 02 Feb 2009 14:45:40 +0100, Johann Borck wrote: [snip] The correct way is to call conn.disconnect()/transport.loseConnection() in f1 instead of in cancel. It's "correct" in that it works around the bug in Twisted. However, this *is* a bug in Twisted which should be fixed. Then it

Re: [Twisted-Python] Re: How can I disconnect ssl connection from the client side?

2009-02-02 Thread Jean-Paul Calderone
On Mon, 2 Feb 2009 19:48:50 +0900, Atsuo Ishimoto wrote: Investigating further, I found this is not SSL related problem, but in my code may have bug. In the following script, I expect that reactor stops in 2 secs after it started, but connectionLost() is not fired at all. Is this a bug in Twist

Re: [Twisted-Python] Re: How can I disconnect ssl connection from the client side?

2009-02-02 Thread Jean-Paul Calderone
On Mon, 02 Feb 2009 16:15:16 +0100, Johann Borck wrote: Jean-Paul Calderone wrote: On Mon, 02 Feb 2009 14:45:40 +0100, Johann Borck wrote: [snip] The correct way is to call conn.disconnect()/transport.loseConnection() in f1 instead of in cancel. It's "correct" in that

Re: [Twisted-Python] Traceback on loseConnection

2009-02-04 Thread Jean-Paul Calderone
On Wed, 04 Feb 2009 11:04:26 +0100, Werner Thie wrote: Hi all My users are complaining that they get the odd disconnect while using my site built with nevow/athena on FreeBSD 7.1 with the poll reactor. I recently switched to twisted 8.2 release and am now observing 199 'Unhandled Error' out

Re: [Twisted-Python] installation help

2009-02-04 Thread Jean-Paul Calderone
On Wed, 4 Feb 2009 13:35:59 +, Arie Lakeman wrote: Hi, I've taken an interest in event driven programming, I came across twisted and liked the look of it, I've tried downloading the .dmg from twistedmatrix/trac unfortunately after trying multiple installations including direct installation t

Re: [Twisted-Python] redefine signal handlers

2009-02-04 Thread Jean-Paul Calderone
On Wed, 4 Feb 2009 10:32:19 +, Reza Lotun wrote: Hi Gabriel, On Wed, Feb 4, 2009 at 10:15 AM, Gabriel Rossetti wrote: Hello everyone, I would like to run some cleanup code when my Twisted app receives a signal (SIGINT/SIGBREAK/SIGTERM). I saw that "_SignalReactorMixin" sets the handlers

Re: [Twisted-Python] Traceback on loseConnection

2009-02-05 Thread Jean-Paul Calderone
On Thu, 05 Feb 2009 11:34:05 +0100, Werner Thie wrote: Hi Jean-Paul Sorry for coming back... Just to be a little more precise: This is a nevow/athena site I therefore have little done in the bowels of twisted and specially no artwork in handling loseConnection. Site running on twisted SVN

Re: [Twisted-Python] Twisted Sprint in February

2009-02-05 Thread Jean-Paul Calderone
On Mon, 26 Jan 2009 18:10:32 -0500, Jean-Paul Calderone wrote: Hello All, 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. Th

Re: [Twisted-Python] Problems with signalProcess on Windows

2009-02-06 Thread Jean-Paul Calderone
On Fri, 6 Feb 2009 18:40:10 +, Brian Granger wrote: Hi, [take a deep breath and try to get over how much I dislike Windows] So, I am using Twisted's external process capabilities in a cross-platform setting. Almost everything is working now in Windows. But, when I try to stop the externa

Re: [Twisted-Python] Perspective Broker and thread safe!

2009-02-06 Thread Jean-Paul Calderone
On Fri, 6 Feb 2009 17:30:19 +0100, "B. B." wrote: Hello, I am relative new to twisted, though I have manage to make a simple client server solution ( using perspective broker ) that I am now try to refactor a little. The solution is now something like : Using perspective broker, clients connec

Re: [Twisted-Python] need help for twisted FTPClient

2009-02-11 Thread Jean-Paul Calderone
On Wed, 11 Feb 2009 11:43:07 +0800, 柳锴 wrote: hello, everyone: I'm new to twisted and ftp protocol. for some purpose, i need a python ftp client to do list, get, put, remove operations upon a FTP server which is implemented with twisted. here is my codes, testing for 'get' passed, but 'pu

Re: [Twisted-Python] Communication with Async Java NIO Socketchannel

2009-02-15 Thread Jean-Paul Calderone
On Sun, 15 Feb 2009 17:20:53 +0100, Johann Höchtl wrote: Is it possible to communicate with a nonblocking Java SocketChannel from Java.nio? What has to be attended? Are you certain you have the correct mailing list? This doesn't sound like a question which is related to Twisted. Jean-Paul

Re: [Twisted-Python] Communication with Async Java NIO, Socketchannel

2009-02-15 Thread Jean-Paul Calderone
On Sun, 15 Feb 2009 18:48:31 +0100, Johann Höchtl wrote: On Sun, 15 Feb 2009 17:20:53 +0100, Johann Höchtl wrote: >Is it possible to communicate with a nonblocking Java SocketChannel from >Java.nio? >What has to be attended? Are you certain you have the correct mailing list? This doesn'

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 18:07:02 +0100, Esteve Fernandez wrote: Hi all, I'm using HTTPAuthSessionWrapper to wrap a portal, which uses our own checker against an internal service to authenticate users and I'm having trouble to pass extra information to sub resources. I've read about the mind object

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 18:47:37 +0100, Esteve Fernandez wrote: On Thursday 19 February 2009 18:28:59 Jean-Paul Calderone wrote: What kind of "extra information" are you trying to pass? Generally, all information belongs with the avatar object. The mind should be used to interac

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 19:39:48 +0100, Esteve Fernandez wrote: On Thursday 19 February 2009 18:57:29 Jean-Paul Calderone wrote: On Thu, 19 Feb 2009 18:47:37 +0100, Esteve Fernandez wrote: >On Thursday 19 February 2009 18:28:59 Jean-Paul Calderone wrote: >> What kind of "extra in

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 20:22:30 +0100, Esteve Fernandez wrote: On Thursday 19 February 2009 19:46:59 Jean-Paul Calderone wrote: >But, in our case, requestAvatar can only return something based on what > the checker returns. I mean, requestAvatar receives an avatarId (as a > result o

Re: [Twisted-Python] Debugging Twisted

2009-02-20 Thread Jean-Paul Calderone
On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch wrote: I would like to investigate on the conch error I mentionned in my previous message ("KeyError when an errback is triggered within a conch TCP tunnel"). My problem is Twisted catches the exceptions and the debugger won't stop on them, how

Re: [Twisted-Python] Twisted slow in Mac OS X fast on Windows

2009-02-20 Thread Jean-Paul Calderone
On Fri, 20 Feb 2009 11:11:24 -0800, Brian Granger wrote: Hi, We use Twisted extensively in the IPython project for parallel and distributed computing. We have an extensive test suite that uses trial to test our servers and clients. Everything works great...but...the test suite takes much lon

Re: [Twisted-Python] Debugging Twisted

2009-02-20 Thread Jean-Paul Calderone
On Fri, 20 Feb 2009 20:15:02 +0100, Luper Rouch wrote: Jean-Paul Calderone wrote : On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch wrote: I would like to investigate on the conch error I mentionned in my previous message ("KeyError when an errback is triggered within a conch TCP t

Re: [Twisted-Python] Twisted Sprint in February

2009-02-20 Thread Jean-Paul Calderone
On Thu, 5 Feb 2009 16:56:51 -0500, Jean-Paul Calderone wrote: On Mon, 26 Jan 2009 18:10:32 -0500, Jean-Paul Calderone wrote: Hello All, 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 a

Re: [Twisted-Python] Debugging Twisted

2009-02-23 Thread Jean-Paul Calderone
On Mon, 23 Feb 2009 15:11:15 +0100, Luper Rouch wrote: Jean-Paul Calderone a écrit : On Fri, 20 Feb 2009 20:15:02 +0100, Luper Rouch wrote: Jean-Paul Calderone wrote : On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch wrote: I would like to investigate on the conch error I mentionned in my

[Twisted-Python] Development Process Failure

2009-02-23 Thread Jean-Paul Calderone
Hey all, Recently I've been bothered by a systematic shortcoming of the Twisted development process. When changes are made in response to a review, they are generally made in a way which is difficult to inspect. The value of a review is lost if the valid points raised by it are not addressed be

Re: [Twisted-Python] Twisted plugins and py2exe

2009-02-24 Thread Jean-Paul Calderone
On Tue, 24 Feb 2009 11:49:13 +0100, Gabriel Rossetti wrote: Hello everyone! I used py2exe on a Twisted app of mine and I get this exception : Traceback (most recent call last): File "proj\service.pyc", line 1308, in connectionMade File "proj\service.pyc", line 1640, in _register File "p

Re: [Twisted-Python] Twisted plugins and py2exe

2009-02-24 Thread Jean-Paul Calderone
Tue, 24 Feb 2009 17:35:14 +0100, Gabriel Rossetti wrote: Jean-Paul Calderone wrote: On Tue, 24 Feb 2009 11:49:13 +0100, Gabriel Rossetti wrote: Hello everyone! I used py2exe on a Twisted app of mine and I get this exception : Traceback (most recent call last): File "proj\servic

Re: [Twisted-Python] Reentrant reactor iteration

2009-02-27 Thread Jean-Paul Calderone
On Fri, 27 Feb 2009 15:26:43 +0100, Marcel Keller wrote: Hi, I am working on the VIFF project (viff.dk) which uses Twisted. I found out that our code is sometimes inefficient because we are generating many deferreds (maybe about 1) in a callback. While doing that, no network communicatio

Re: [Twisted-Python] Why do I get an AlreadyCalledError?

2009-02-28 Thread Jean-Paul Calderone
On Sat, 28 Feb 2009 13:21:06 +, Conrad Winchester wrote: Hi all, I am writing a restful twisted (8.1.0) server and am trying to return useful error statuses from requests. The problem is that even following the documentation extremely carefully I am getting an AlreadyCalled Error ever

Re: [Twisted-Python] Why do I get an AlreadyCalledError?

2009-02-28 Thread Jean-Paul Calderone
On Sat, 28 Feb 2009 14:57:33 +, Conrad Winchester wrote: Thanks Jean-Paul, Useful information, but then I am confused - If I am running in a deferred how do I cause the errback to be called instead of the normal (non-error) callback? How do I pass a failure object to the error handler

Re: [Twisted-Python] Twisted developers: please donate your time!

2009-03-02 Thread Jean-Paul Calderone
On Mon, 02 Mar 2009 09:08:00 -0500, Itamar Shtull-Trauring wrote: On Tue, 2009-02-24 at 21:25 +1300, Michael Hudson wrote: 2009/2/24 Itamar Shtull-Trauring : > As part of the TSF's fundraising efforts, we are trying to get upfront > donations of time you will spend developing Twisted. It will

Re: [Twisted-Python] newbie problem with SMTPClient

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 15:57:17 -0500, Dave Britton wrote: I love the idea of twisted but I think I must have a twisted learning disability, as I have gotten nowhere in what ought to be a simple matter. I need to send out emails to small groups from my apache server running a python cgi using mod

Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 22:55:26 +0100, Nicolas Toper wrote: Hi, It seems the resolv file in twisted.names.client#maybeParseConfig is never closed. This creates a exceptions.IOError: [Errno 24] Too many open files: '/etc/resolv.conf (FYI I am resolving a domain very often in my script). Am I

Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 23:33:57 +0100, Nicolas Toper wrote: Good point, you are right. Thanks :) I can still commit a patch: really there just need a finally clause at the end of maybeParseConfig to close the file AFAI A patch (with unit test :) would be quite welcome. Please open a ticket at ht

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Jean-Paul Calderone
On Tue, 3 Mar 2009 13:17:48 +0100, Pet wrote: Hi, what is a proper way to escape user input in database query strings? I've used quote from twisted.enterprise.util, but it is deprecated now. Is there any other module for this purpose? The proper way is with "bind parameters". This keeps SQL

Re: [Twisted-Python] how to pass on the connection failed or connection lost error

2009-03-04 Thread Jean-Paul Calderone
On Wed, 4 Mar 2009 06:39:59 -0800 (PST), khawar hasham wrote: Hi let me first explain the application that I am developing. I have an application that will use the twisted part as a plugin. this twisted part will act as server and as client both. my application call the plugin method to send

Re: [Twisted-Python] Re: Twisted developers: please donate your time!

2009-03-04 Thread Jean-Paul Calderone
On Wed, 4 Mar 2009 09:34:54 -0800 (PST), Andrew Francis wrote: Hi Itamar and Colleages: As part of the TSF's fundraising efforts, we are trying to get upfront donations of time you will spend developing Twisted. It will then get matched by a donor, if we are successful in getting this grant.

Re: [Twisted-Python] sending large files from web2 http server

2009-03-05 Thread Jean-Paul Calderone
On Thu, 05 Mar 2009 16:20:27 +0100, Markus Wanner wrote: Hi, I'm trying to stream longish data via web2, but experience sudden stalls in data transfer, followed by a connection abort after a certain timeout. I can't completely reproduce the issue, yet, but figured that the size of the blocks I'

Re: [Twisted-Python] A few comments on deferreds

2009-03-06 Thread Jean-Paul Calderone
On Fri, 6 Mar 2009 12:10:55 +0100, Terry Jones wrote: Here are a few comments on deferreds. I'll keep this short. These sort of posts don't seem to generate much/any discussion (e.g., http://bit.ly/YkSD which I thought was cool). I'm not sure why - I find deferreds infinitely interesting, and do

Re: [Twisted-Python] _Win32Waker

2009-03-06 Thread Jean-Paul Calderone
On Thu, 5 Mar 2009 16:49:15 -0600, Aron Bierbaum wrote: I have been using a custom Qt4 reactor that derives from PosixReactorBase. As a result it creates a _Win32Waker to allow threads and signals to wake up the IO thread. It seems though that the current implementation only works about half of

Re: [Twisted-Python] Re:how to pass on the connection failed or connection lost error

2009-03-06 Thread Jean-Paul Calderone
On Thu, 5 Mar 2009 15:49:31 -0800 (PST), khawar hasham wrote: Hi, I tried to use this suggestion but I could not make it work. here is the test I am using in my application class def callSend(self, msg):   plugin.send(msg) Now in plugin class def send(self, msg):   print 'before cal

Re: [Twisted-Python] Re: Reentrant reactor iteration

2009-03-07 Thread Jean-Paul Calderone
On Sat, 07 Mar 2009 19:38:46 +0100, Martin Geisler wrote: Jean-Paul Calderone writes: Hi, Thanks for the answer. I'm also with the VIFF project and I would like to explain a bit more about the background for the hack by Marcel. [snip] So you're doing a ton of work all at once n

Re: [Twisted-Python] _Win32Waker

2009-03-09 Thread Jean-Paul Calderone
On Mon, 9 Mar 2009 09:17:14 -0500, Aron Bierbaum wrote: I have been unable to reproduce this problem on multiple machines that I have tested on. Also I have tried changing various network settings on my machine without any change. Do you have any ideas what I should be looking for? Not really,

Re: [Twisted-Python] getting sshsimpleserver.py to work within a wrapper

2009-03-10 Thread Jean-Paul Calderone
On Tue, 10 Mar 2009 22:45:03 +0100, jkv wrote: Ben Hyde wrote: In one of the examples (sshsimpleserver.py) reactor.listenTCP is used to listen on the network socket, as far as i can read from the twisted core documentation there are no builtin way to make reactor.listen* listen on stdin inst

Re: [Twisted-Python] Gsoc 2009

2009-03-11 Thread Jean-Paul Calderone
On Tue, 10 Mar 2009 19:34:51 +0530, kartik rustagi wrote: Hello everyone, Is twisted applying as an organization in this year's Gsoc? I as a student will be interested in working for it. Since the deadline for organization applications is tomorrow and as far as I know, no one involved with T

Re: [Twisted-Python] Noob Question

2009-03-15 Thread Jean-Paul Calderone
On Sun, 15 Mar 2009 08:55:25 -0500, Shelby Ramsey wrote: Peter, Thanks for the assistance. I think you and David have me on the right path. Just to clarify the protocol looks like this: Hi Shelby, You may want to consider re-using an existing protocol rather than inventing and implementing

Re: [Twisted-Python] Novice question on twisted framework

2009-03-17 Thread Jean-Paul Calderone
On Tue, 17 Mar 2009 15:18:31 +1100, Sury Soni wrote: Hi, I have an existing application, written using Ice Middleware (www.zeroc.com) This application is my source of infinite queue (server) Following is my application (processing client to my infinite queue server) idea to be implemented usi

Re: [Twisted-Python] So how does everyone use an ORM in twisted?

2009-03-17 Thread Jean-Paul Calderone
On Tue, 17 Mar 2009 11:05:59 -0400, Ryan Lepidi wrote: I have searched a bit, and it seems as though you can't use SQL Alchemy with twisted due to SA being thread unsafe. The only solution I found was sAsync, but this is old and unmaintained. What is everyone else doing for database access for a

Re: [Twisted-Python] LineReceiver MAX_LENGTH limitation

2009-03-18 Thread Jean-Paul Calderone
On Wed, 18 Mar 2009 13:10:12 +0100, Pet wrote: Hi, in LineReceiver there is MAX_LENGTH = 16384 limitation. Is it possible to set it bigger at start of an application? It's an attribute. Not only can you set it to a larger value at the start of an application, but you can also set it at the m

Re: [Twisted-Python] Stackless Twisted shocking performance

2009-03-22 Thread Jean-Paul Calderone
On Fri, 20 Mar 2009 18:16:47 +, Simon Pickles wrote: [snip] As more updates are sent zone->hub, per second, the incoming client->hub->zone messages take SECONDS to get thru! This is with approx 50 messages per second between a single zone and the hub. "message" is a very non-specific u

Re: [Twisted-Python] Stackless Twisted shocking performance

2009-03-22 Thread Jean-Paul Calderone
On Sun, 22 Mar 2009 18:32:30 -0500, Jean-Paul Calderone wrote: On Fri, 20 Mar 2009 18:16:47 +, Simon Pickles wrote: [snip] As more updates are sent zone->hub, per second, the incoming client->hub->zone messages take SECONDS to get thru! This is with approx 50 messages p

Re: [Twisted-Python] how to create state machines?

2009-03-27 Thread Jean-Paul Calderone
On Thu, 26 Mar 2009 14:26:17 -0400, Doug Farrell wrote: Hi all, I'm still getting my 'sea legs' with Twisted, so this may be a novice question, but I'm wondering what would be a good way to create a state machine with Twisted? For instance I've written quite a bit of code in different language

  1   2   3   4   >