Am 01.11.2011 20:06, schrieb Mark Brontein:
Is there a best practice or rule of thumb for where to put controller methods and forms / widget code?
> Should all controller methods go in root.py, or should they segregated > in another file.
The methods of the root controller go in root.py, but I recommend adding subcontrollers as separate modules in the controllers package.
What about forms and widgets?
If you have more than a handful of them, create a widgets subpackage. You can also add a template subpackage inside your widgets package if you're using custom templates.
Usually I also create a lib subpackage for other common code that is used by widgets, controllers or models.
-- Christoph -- 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.

