You can add "if" statememts in models
On Jun 11, 8:03 am, AchipA <[email protected]> wrote:
> I was wondering of a possibility of speeding up models (especially if
> you have several different datasources), while keeping backward
> compatibility and also a convention over configuration approach. We do
> everything as before, however, if there IS a model with the same base
> name as a controller, upon the invocation of the controller we only
> execute THAT model (it can import others with a small check to avoid
> recursion). This would be not unlike what we do with views now (check
> for a default naming convention, fall back to generic if that fails).
> Thoughts, comments ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---