On 10/6/05, leo <[EMAIL PROTECTED]> wrote:
> Hello -
>
> I was wondering if anyone had any information on using a different ORM
> with TG? Any documentation on the OR stuff would be nice...
>
> The reason I ask, is my company is currently developing an in-house ORM
> (because of - as always - custom business logic that makes an out of
> the box ORM un-ideal) and as such, we can't use SQLObject. TG looks
> very nice and promising, but I'd like to know more about the ORM stuff
> before considering a pitch to the ones that wear ties.
>
> Thanks,
> leo


The Schevo project (http://schevo.org/ -- website to be updated to
follow new development soon) is working on integration with
TurboGears, and we've found it to be very straightforward to do.  We
just make sure the database(s) are opened in the model.py of a project
and use a 'db' global in model.py to access it.  Our model.py files
are only ever three lines long because of this ;)

TurboGears is by nature, at least in its current incarnation, rather
database-agnostic.  Can't speak directly for Kevin, but things like
SQLObject are basically included since it's quite a nice
out-of-the-box ORM that makes it easy for people to start a new
project using TurboGears and an RDBMS.

Schevo isn't even a SQL-based DBMS, it's a different style of DBMS
written entirely in Python, where the database schema is also written
in a very straightforward declarative style, also in Python.  If it's
easy to use Schevo along with TurboGears, it should be equally as easy
to plug in your company's ORM.  Your project's model.py is the place
to start.  :)

Have fun!


--
Matthew R. Scott

Reply via email to