[web2py] Re: Internal only functions in controllers

2018-05-18 Thread Anthony
On Friday, May 18, 2018 at 11:44:53 AM UTC-4, Rick Williams wrote: > > Thanks, Stifan. I verified double underscore returns invalid function. > This will work for me. > Also, note that any function in a controller that takes arguments is also kept private, so the double underscore is only need f

[web2py] Re: Internal only functions in controllers

2018-05-18 Thread Rick Williams
Thanks, Stifan. I verified double underscore returns invalid function. This will work for me. On Friday, May 18, 2018 at 11:25:34 AM UTC-4, 黄祥 wrote: > > think there are 2 solution for this: > 1. use double underscore as a function name in controller e.g. def > __validate_function() > 2. use mod

[web2py] Re: Internal only functions in controllers

2018-05-18 Thread 黄祥
think there are 2 solution for this: 1. use double underscore as a function name in controller e.g. def __validate_function() 2. use modules (e.g. modules/somemodule.py) and import it on the controller or function that need that module best regards, stifan -- Resources: - http://web2py.com - h