[Twisted-Python] twistd and SqlObject

Valentino Volonghi aka Dialtone dialtone at divmod.com
Tue Aug 23 08:46:45 EDT 2005


Graham Stratton wrote:

>I guess I'm being very naive about the way in which twistd works, but I
>can't find any comprehensive documentation saying what it does.
>  
>
This is mostly a problem with the way you use tac files.

>Thanks for any pointers,
>  
>
Avoid putting everything in one file.
The .tac file is not really a module and it's 'execfile'd.
Change the code to have everything except a very simple and declarative
configuration code inside
the tac file and put everything else in a separate module. It should
work then.

-- 
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4.1
Blog: http://vvolonghi.blogspot.com
http://weever.berlios.de





More information about the Twisted-Python mailing list