[Twisted-Python] Twisted and python threading

2010-03-18 Thread *
Hi, I'm trying to spawn a threading.Thread from a Twisted application, but the thread won't start unless I schedule the the code with reactor.callLater(), any Ideas ? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.

Re: [Twisted-Python] Twisted and python threading

2010-03-18 Thread Andrew Bennetts
(*)·´`·.¸.»ÐëÄdMäñ·´`·.¸.»(*) wrote: > Hi, > > I'm trying to spawn a threading.Thread from a Twisted application, but > the thread won't start unless I schedule the the code with > reactor.callLater(), any Ideas ? Twisted doesn't affect threading.Thread at all. You haven't given much detail, so

Re: [Twisted-Python] Twisted and python threading

2010-03-18 Thread *
Hi thanks for the reply, I have a separate module that doesn't/shouldn't depend on Twisted, and this module is begin called from a Twisted application, and it needs to spawn a thread the thread doesn't call anything within Twisted, the problem is when I call start() the thread doesn't run, but If

[Twisted-Python] Is it possible to turn off transactions for adbapi?

2010-03-18 Thread markscottwright
I'm trying to get SQL Server 2005 to CREATE DATABASE using twisted. However, SQL Server won't allow you to run CREATE DATABASE within a transaction (apparently, it's not something sql server can roll back, which seems sensible). Which means that the following code results in an error. Is th

Re: [Twisted-Python] Is it possible to turn off transactions for adbapi?

2010-03-18 Thread George Pauly
Hi Mark, On Thu, 2010-03-18 at 14:29 +, markscottwri...@gmail.com wrote: > I'm trying to get SQL Server 2005 to CREATE DATABASE using twisted. > However, SQL Server won't allow you to run CREATE DATABASE within a > transaction (apparently, it's not something sql server can roll back, > which s

[Twisted-Python] FTP Client - questions

2010-03-18 Thread Renan Mathias Fernandes
Hello, I am trying to learn/implement a FTP Client, but I am facing a problem: How can I check if the retrieveFile method has finished downloading a file? As far as I can see, there is no easy way to do this, am I incorrect? Below is an example of what I am doing to retrieve a file: cla

Re: [Twisted-Python] Is it possible to turn off transactions for adbapi?

2010-03-18 Thread Mark Wright
Hey - ! was wrong. It's actually easy, just specify "autocommit=True" in your call to adbapi.ConnectionPool(...) and runOperation can execute "create database". On Thu, Mar 18, 2010 at 10:53 AM, George Pauly wrote: > Hi Mark, > > On Thu, 2010-03-18 at 14:29 +, markscottwri...@gmail.com wrote

Re: [Twisted-Python] FTP Client - questions

2010-03-18 Thread Andrew Bennetts
Renan Mathias Fernandes wrote: > Hello, > > I am trying to learn/implement a FTP Client, but I am facing a problem: > How can I check if the retrieveFile method has finished downloading a > file? As far as I can see, there is no easy way to do this, am I > incorrect? You a