Re: [Twisted-Python] Twisted and Flask or Django

2017-04-18 Thread Pantelis Theodosiou
On Sun, Apr 16, 2017 at 8:33 PM, Glyph Lefkowitz wrote: > On Apr 16, 2017, at 8:27 AM, Pantelis Theodosiou > wrote: > > > Are there any similar resources for other web frameworks, for example > Pyramid? And when I say resources, I mean talks, presentations or just a > web p

Re: [Twisted-Python] Twisted and Flask or Django

2017-04-16 Thread Pantelis Theodosiou
be helpful to have a page in the Twisted site, with links to such resources - and perhaps a page for each (Django, Flask, Pyramid, etc) with sample code and specific issues/tips than have been encountered when combining Twisted with other frameworks. Pantelis Theodosiou On Sun, Apr 16, 2017 at 2

Re: [Twisted-Python] Multiple reactors, connecting to self, or other solution?

2015-11-18 Thread Pantelis Theodosiou
On Wed, Nov 18, 2015 at 8:55 AM, Glyph Lefkowitz wrote: > > > On Nov 15, 2015, at 9:54 AM, Itamar Turner-Trauring > wrote: > > > > On 11/15/2015 10:19 AM, Oon-Ee Ng wrote: > >> Based on my reading/searching, multiple reactors in the same process > >> (even in multiple threads) is pretty much a n

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Pantelis Theodosiou
or: MultiEcho instance has no > attribute 'app' > > I thought that the "app" has already been referenced? > > 2015-04-29 1:55 GMT+08:00 Pantelis Theodosiou : > >> >> On Tue, Apr 28, 2015 at 6:46 PM, Pantelis Theodosiou >> wrote

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Pantelis Theodosiou
On Tue, Apr 28, 2015 at 6:46 PM, Pantelis Theodosiou wrote: > No, I don't think that would work. > > You would need something like changing these lines: > > reactor.listenTCP(8000, EchoFactory(self)) # for sender > reactor.listenTCP(8001, MultiEchoFactory

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Pantelis Theodosiou
No, I don't think that would work. You would need something like changing these lines: reactor.listenTCP(8000, EchoFactory(self)) # for sender reactor.listenTCP(8001, MultiEchoFactory(self)) # for receiver to: self.echofactory = EchoFactory(self) self.multiecho

Re: [Twisted-Python] Twisted Project Job Posting

2015-03-28 Thread Pantelis Theodosiou
I'll be happy to do this. Times: 09:00 to 20:00 GMT and often later. ypercube On Sat, Mar 28, 2015 at 4:29 PM, HawkOwl wrote: > Hi exarkun, > > I'm happy to do this in my timezones (approx 02:00GMT to 16:00GMT), and > I'm usually around. > > I'd also like to be able to reset passwords on trac -

Re: [Twisted-Python] help with listening to UDP broadcast?

2014-08-08 Thread Pantelis Theodosiou
roadcast packet" # set reactor to listen on multicast channels alertsClient = MulticastClientUDP() reactor.listenMulticast(port, alertsClient) reactor.run() Pantelis Theodosiou On Fri, Aug 8, 2014 at 11:58 PM, Russell E. Owen wrote: > I've found an example for UDP broadcasting: >

Re: [Twisted-Python] [Twisted-web] Twisted 11.1.0 Released

2011-11-17 Thread Pantelis Theodosiou
On Thu, Nov 17, 2011 at 10:15 PM, Pantelis Theodosiou wrote: > Great, just great! > > (nitpicking: the title should be changed from "Twisted *11.1.0* Released" > to "*Twisted 11.1.1 Released*") > Oops, my bad. Too many 1s can confuse one's mind. Sorry. &

Re: [Twisted-Python] [Twisted-web] Twisted 11.1.0 Released

2011-11-17 Thread Pantelis Theodosiou
Great, just great! (nitpicking: the title should be changed from "Twisted *11.1.0* Released" to "*Twisted 11.1.1 Released*") Pandelis On Thu, Nov 17, 2011 at 6:02 PM, Thomas Hervé wrote: > On behalf of Twisted Matrix Laboratories, I am pleased to announce the > release of Twisted 11.1. > > Hi

Re: [Twisted-Python] How do I know the server from reactor.listenTCP already started listening?

2011-09-27 Thread Pantelis Theodosiou
On Tue, Sep 27, 2011 at 1:55 PM, David Kao wrote: > My bad for not being clear, but actually, the client program is a > separate binary that I plan to spawn as a subprocess, which should > connect to the server. > > Basically, the answer I am getting now is that I am never sure when > the server

Re: [Twisted-Python] How to exit a twistd program with a status code ?

2010-09-24 Thread Pantelis Theodosiou
I think that you should not put the sys.exit(1) call, after the reactor.stop() call. >From my very limited understanding of how Twisted reactor works, it could be done with something like: statusCode = 1 #or whatever reactor.stop() in the method that stops the reactor and the exit call s

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Pantelis Theodosiou
On Fri, Sep 10, 2010 at 7:39 PM, Paul Goins wrote: > Thanks for the code example. > > I can't offer to take this work over, but maybe I can make a comment. > There's one part that stands out to me. > > > try: > > deferred = self.dbpool.runOperation(sql) > > #pri

Re: [Twisted-Python] reactor for both udp and tcp/ timer issue

2010-09-10 Thread Pantelis Theodosiou
On Fri, Sep 10, 2010 at 7:55 PM, belk Dj wrote: > I need to communicate with servers over tcp and also communicate with other > servers over udp. > It seems not possible to launch two reactor objects one for tcp and one for > udp. > The code after a reactor.run is not called. > How can this can b

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Pantelis Theodosiou
I have no experience with MS SQL, only with PostgreSQL via psycopg2, but the > idea is: > > you want to execute many statements, probably in a blocking fashion: > runInteraction() > you want to execute just one statement: runQuery()/runOperation() > > AFAIK the latter one will do a commit for you i

[Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-09 Thread Pantelis Theodosiou
I have a simple INSERT INTO statement sent to SQL-Server using pymssql module. I use the runOperation method to send the query and I get this strange error. The data goes through OK and is written in the database but SQL-Server tries to rollback. Perhaps this is a pymssql problem. In the http://c