controller/whatever.py
  contains the functions that do the actual work, populating
tmpl_context.*, deals with the database, etc.

model/whatever.py
  contains the schema for forms

model/database.py
  contains the schema for the 1170 tables in this project

lib/whatever.py
  contains the classes to deal with communications with the
distributed daemon, functions that massage data in predictable ways,
etc.  Anything that might be called from the controller

templates/*
  .mako files, etc.


What I've always debated is whether the form schemas should be a model
or in the controller.  I have put the form schemas in the controllers
for testing or debugging things just to make it easier to track things
down, but, any deployed/final code is placed in model/*.  I've
followed PEP-8 which has required me to make a few changes to my
coding style, but, four spaces rather than two, not using () around if
conditions, etc are not dealbreakers.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to