>
> Thanks for your explanation, now how do I get a connection? :)
>
> I'm using TurboGears (for the first time). I guess I need to sign up to a
> TG
> mailing list now...
>
Hi, in my case, I am doing following:

======= snip ========================
if os.name == 'posix':
    db_filename = '/opt/firebird/examples/empbuild/automat.fdb'
else:
    db_filename = 'c|\\Program
Files\\Firebird\\Firebird_2_0\\examples\\empbuild\\automat.fdb'

connection_string = 'firebird://127.0.0.1:3050/' + db_filename
connection = connectionForURI(connection_string)
trans = connection.transaction()
sqlhub.processConnection = connection

======= snip end =====================
maybe you don't need the row:trans = connection.transaction()

HTH
Petr
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to