PaulB wrote:
> Running TG 1.0.7 w/SQLAlchemy 0.5
> 
> I have not found a really good model.py to use as a reference.  The
> SQLAlchemy docs are a great tech ref, but not so in-depth in the
> "example" department.  For the most part, TG docs are outdated and
> point to SQLobject.  Or, TG docs I can find only have rudimentary
> examples of SQLA.
> 
> What would really jump start my learning is to see an extensive TG
> model.py for SQLAlchemy 0.5 written by a maestro.  Something with
> allot of tables/classes/relations.
> 
> Does anyone have a link to a good model.py or other good source
> explaining   ...or does anyone know a open source using the latest TG/
> SQLA?  I can read their model.py
> 
We do a lot of TG apps for Fedora.

Here's two that you can look at:

The Fedora PackageDB:
  http://tinyurl.com/6msaar

The Fedora Account System
  http://tinyurl.com/65tf2e

The PackageDB model has been converted to be in multiple files while the
Account System is mostly a single file model.  (I say mostly because
we've grafted on an OpenID provider so there's two files that make up
the model but they're largely independent of each other).

BTW, if anyone has suggestions on how to manage dependency loops in
multi-file models I'd appreciate hearing about your experiences.  My
model works right now but I had to deal with several loops before I got
to that point and I'd like to find a more structured method for dealing
with them.

-Toshio

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to