or init function name with double underscore: def __test(): pass
the __ make function usable in your code, but not visible in browser. Fabiano. 2015-06-23 15:30 GMT-03:00 Niphlod <niph...@gmail.com>: > if you plan to use functions in controllers that MAY NOT be seen by users, > just define them with a parameter (a dummy one works fine) > > def this_function_is_accessible(): > pass > > def this_is_not_accessible(dummy=None): > pass > > > On Tuesday, June 23, 2015 at 7:27:42 PM UTC+2, Alex Glaros wrote: >> >> some functions are not viewed by user; they just return data to another >> function. Do those need a view? >> >> I ask because if it crashes, then user may see the raw view >> >> thanks >> >> Alex Glaros >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.