Also, note that you can start the function name with a double underscore to keep it private (in that case, it does not have to take any arguments to remain private).
Anthony On Tuesday, June 23, 2015 at 2:30:27 PM UTC-4, Niphlod wrote: > > 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.