On 8/27/07, Mark Ramm <[EMAIL PROTECTED]> wrote: > > For 6: The model dir should make it clear whether model objects on in > > __init__.py or in their own files (I know there's some choice, but > > good defaults would be great). Likewise, controller/root.py might > > have a commented out import to show how to cleanly reference model > > objects there. (I know this is minor, but it's great when new > > frameworks expose things that experienced users would take for > > granted). This will become less necessary when there are more sample > > TG2 projects. > > Definitely shouldn't go in __init__.py. We should be creating some > default file with a bit of commented out sample code or something. > > Anybody on the list got strong opinions about what this should look like?
Looking at the Tesla project template for Pylons might be an idea. By default, it has model/__init__.py, and you add new models with "paster model user", and it creates model/user.py and test cases and so forth. (The auth template comes with its own model/user.py with the standard User/Group/Permission stuff in there for use with AuthKit.) Neil -- Neil Blakey-Milner http://nxsy.org/ [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
