Horst Herb schrieb:
> On Monday 18 June 2007 17:34, Christopher Arndt wrote:
>> Are you using an ORM (SQLObject or SQLALchemy) or are you interfacing
>> with the db directly via  psycopg?
> 
> I can use either SQLObject or SQLALchemy if they permit connection per user 
> (each user loigging into the cbackend under his own name); the current GUI 
> application uses a self-written ORM, but I was intending consolidating on SQL 
> Object

You can set the connection of a data object in SO and in SA, but I don't
know how this can be fitted into the TurboGears framework. You would
probably have to write an identity plugin that authenticates users
against the database and then wrap/modify the data object instantiation
methods (i.e. get(), select() and friends) to return data object with
the db connection set to the current authenticated user. I suspect that
this would require heavy modifications of both ORM framworks but you
should better ask on their mailing lists to make sure.

Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to