In web2py, is there a way t开发者_高级运维o have a piece of common code be executed before all controllers are called?
From MSDN: It is likely that most of the views in your modules will not have to be displayed directly, but only after some action by the user. Depending on the style of application, you may want to
Please some help with the function weightDiff It works if I leave everything in a single .py file, however