469,929 Members | 1,800 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

twisted.web and a


I am currently working on a quite complicated application (at least for
me) and unfortunately I don't know how to go on.

I wrapped a Windows-dll by using the ctypes module so that I can access
different functions that are used to control a network device (open,
close, write/read values). Now I was asked to write something like a GUI
for it which should be based on a CGI script that calls the different
functions (read/write) with parameters entered in a text-input of a
Therefore I wrote a small HTTP-Server class based on twisted.web. In its
constructor the network device is opened (--> the wrapper class is
initiated) and is closed by the server's destructor. Now I need the same
wrapper class instance in my CGI script so that read() and write() can
be called on exactly the same instance - otherwise these methods would
fail since the network device hasn't been opened so far.

Do you have any idea how to solve this problem? I am looking forward to
any responses.

Apr 10 '06 #1
0 734

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Paul Moore | last post: by
1 post views Thread by Fazer | last post: by
11 posts views Thread by mir nazim | last post: by
2 posts views Thread by Taki Jeden | last post: by
6 posts views Thread by Kartic | last post: by
2 posts views Thread by Christopher Subich | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.