On Aug 7, 3:03 pm, __future__ <wrigh...@gmail.com> wrote: > In the controller, I am sure most people rely on custom functions for > various things. Where should these functions live? They don't seem > like they belong in the controller. Should they go in a module?
If the function only applies to that Controller, then I put it in the controller. If it applies to multiple Controllers then it can go into either the Model or else a Module. Currently I'm putting most stuff into the Model, but for performance reasons, it can be better to move stuff to a Module & only import when needed (the whole model gets processed each request) F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---