I tray both methods, dummy argument and two underscore The dummy argument can be fanny :) but I chose to use two underscore (_ + _) = __
Thanks Anthony Miroslav On Nov 18, 9:43 pm, Anthony <abasta...@gmail.com> wrote: > The extra space method is probably a bug (so don't count on it working in > the future) -- instead, you can start the function name with two > underscores, or make sure the function takes at least one argument (even if > it's a dummy argument that isn't used). > Seehttp://web2py.com/book/default/chapter/04#Dispatching(callout box). > > Anthony > > > > > > > > On Friday, November 18, 2011 3:39:29 PM UTC-5, miroslavgojic wrote: > > > And I have answer for me > > > just use extra space :) for hiding > > def func1 (): > > body of function > > return value1 > > > or without extra space is normally visible: > > def func2(): > > body of function > > return value2 > > > Miroslav > > > On Nov 18, 9:35 pm, miroslavgojic <mirosl...@gmail.com> wrote: > > > In controller I have two functions > > > > def func1(): > > > body of function > > > return value1 > > > > def func2(): > > > body of function > > > return value2 > > > > In EDIT APPLICATION "NAME" (administrative panel) > > > I see default.py exposes func1,func2 > > > > In my browser I can access to both functionshttp:// > > 127.0.0.1:8000/name/default/func1http://127.0.0.1:8000/name/default/func2 > > > > in my browser I need to access only to func1 but not in func2 > > > Is some other way to make functions, or is just like this and I need > > > to use this way for my functions > > > > Visible functions should be index, contact, ... > > > but how to hide some functions for making some calculations from > > > direct access from browser. > > > > Regards > > > Miroslav