On 01/31/2010 06:16 PM, Wyatt Baldwin wrote: > This is the approach I use. My thinking is that the model should be > separate from any user interface or application. I view a Pylons app > as a (thin) layer that adapts a model (and perhaps services) to the > Web (as a UI or Web services). As such, I usually implement the model > in a separate Python package. >
Precisely. But it also cuts down the code required, especially if complex apps where more than one controller would like same operation on a model. > Nitpicky style point: the prevalent style for function/method names in > Python is load_by_id. See PEP 8. > Yup, I've read the style guidelines, I just used the method names that I currently use in PHP. Thanks, though! Vlad -- 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.
