In one project, I split controllers into their own directory with  
files for separate modules for things like admin, account management,  
AJAX/JSON lookups, etc.  I also split up the model into separate  
modules within a directory for identity and visit support tables,  
support tables, and primary data structures.

I'm very glad I split it apart the way I had.  The following is the  
file/directory structure:

ProjectName/
   data.py -- stock data
   dev.cfg
   development.db -- SQLite DB
   documentation/ -- epydoc, project manuals, etc.
   projectname/
     config/ -- app and log configs
     controllers/
       account.py -- account management
       admin.py -- system administration
       base.py -- RootController
       lookups.py -- JSON fast lookups
       mail.py -- TurboMail template controllers
       processes.py -- recurring tasks
       widgets.py -- widget instances
     model/
       application.py -- application-specific tables
       base.py -- Identity & Visit tables
       support.py -- Keywords, Address, etc. support tables
     release.py -- version information
     static/[css,ie7,img,js] -- static files, served via Apache
     templates/ -- various application-specific templates, plus:
       account/ -- account management templates
       genericform.kid -- one-template fits all form/widget display [1]
       mail/ -- mail templates
       site.kid -- site template
     tests/ -- unit tests.  yeah.  really.  ;^)

[1] My genericform.kid is a customized version of:
     http://docs.turbogears.org/1.0/UnifiedControllers#generic-form- 
template

Matthew Bevan, Systems Administrator
Top Floor Computer Systems Ltd.



--~--~---------~--~----~------------~-------~--~----~
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