[Twisted-Python] Making database-code Twisted-friendly

Hi, Attached is a database-module I've created and used quite a lot and so far been very happy with. The problem is that it's not Twisted-compatible at all. It blocks and I need something light in my current project to merge a lot of data from one database into another and I'd like to use this library to do it. Perhpas somebody can have use for it as well?? My ideal form of working with databases is shown in the README.txt file. I'd like to be able to something similar using Twisted in the lower layers, not blocking. In short: What I'm looking for is comments on the concept and code in general, but more importantly a simple example on how to write similar code in a Twisted-friendly manner so it doesn't block, or if you're so inclined, feel free to add a Twisted-compatible Connection-object that doesn't block and return data in the same manner as the implemented objects do :-). NB! If my attachment causes problems I'm terribly sorry, but my current webserver is unavailable at the moment so I have no other place to post the code ( except making an entire new project at sourceforge, which seemed like overkill ). Best regards, Thomas

On Thu, Oct 14, 2004 at 05:41:09PM +0200, Thomas Weholt wrote: [...]
Without commenting on the Twisted issues of this at all, have you seen SQLObject? At a glance, it seems to be quite similar in concept. http://sqlobject.org/ -Andrew.

Yepp!! Looks good except for the fact that it only deals with objects, I need plain old dictionaries all the way. Truth be said, I haven't played with it extensivly, so it might support that. I'll check into it. Thanks. Thomas On Thu, 14 Oct 2004 22:03:52 +0200, Andrew Bennetts <andrew-twisted@puzzling.org> wrote:
-- Mvh/Best regards, Thomas Weholt http://www.weholt.org

On Thu, Oct 14, 2004 at 05:41:09PM +0200, Thomas Weholt wrote: [...]
Without commenting on the Twisted issues of this at all, have you seen SQLObject? At a glance, it seems to be quite similar in concept. http://sqlobject.org/ -Andrew.

Yepp!! Looks good except for the fact that it only deals with objects, I need plain old dictionaries all the way. Truth be said, I haven't played with it extensivly, so it might support that. I'll check into it. Thanks. Thomas On Thu, 14 Oct 2004 22:03:52 +0200, Andrew Bennetts <andrew-twisted@puzzling.org> wrote:
-- Mvh/Best regards, Thomas Weholt http://www.weholt.org
participants (2)
-
Andrew Bennetts
-
Thomas Weholt