Jonathan LaCour wrote:
I would say Jonathan is right on this. Also, technically there is one problem when you split the models into multiple files: when you have joins, classes became dependent on another at the database level. It will hurt when you are creating a new database from the model. Since splitting files means loading the files in arbitrary order (usually by the filename), which means if you are creating a new database with table A which foreign key refs table B, table A will not create since B does not exists yet. At the end you will end up with one of these options and/or a mixture of it: a) Don't use joins b) Name your files in the order of creation c) use a single file d) separate files should be imported from a __init__ .py in the package directory (order maintained in __init__.py). So, -1 for models being in a package. OTH, if separate models means each model is a separate *database* that would be wonderful. But then I am asking for a new feature. Artarious --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [TurboGears] Re: bike shed #2: controllers.py vs. ... anders pearson
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... Justin Johnson
- [TurboGears] Re: bike shed #2: controllers.py vs. ... Jorge Godoy
- [TurboGears] Re: bike shed #2: controllers.py ... Travis Bradshaw
- [TurboGears] Re: bike shed #2: controllers.py ... Justin Johnson
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... BJörn Lindqvist
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... justin_j
- [TurboGears] Re: bike shed #2: controllers.py vs. ... Simon Belak
- [TurboGears] Re: bike shed #2: controllers.py ... Richard Standbrook
- [TurboGears] Re: bike shed #2: controllers... Elvelind Grandin
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... Artarious
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... justin_j
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... justin_j
- [TurboGears] Re: bike shed #2: controllers.py vs. ... Kevin Dangoor
- [TurboGears] Re: bike shed #2: controllers.py ... Kevin Dangoor
- [TurboGears] Re: bike shed #2: controllers... Karl Guertin
- [TurboGears] Re: bike shed #2: controllers... Justin Johnson
- [TurboGears] Re: bike shed #2: control... Kevin Dangoor
- [TurboGears] Re: bike shed #2: controllers... Jorge Vargas
- [TurboGears] Re: bike shed #2: controllers.py vs. contr... justin_j
- [TurboGears] Re: bike shed #2: controllers.py vs. ... Kevin Dangoor

