Basically, it comes down to importing everything you need, but no more.
 I just went through this learning experience in the last week, and the
strategy I developed was to:

1. Move all the methods I know I want in a particular controller into
that controller.

2. Take everything that I was importing into controllers.py and import
the same things into the new subcontrollers, as well.

3. Run pylint on each controller file and remove that stuff it flags as
"unused imports".

3a. Take care of the other stuff pylint complains about that seems
reasonable to address.

4. Profit! ;-)


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