If you want to do that, then you would make _test(arg1, arg2) its own 
function in the controller. So instead of:

def test():
    def _test(arg1, arg2):

You would just do:

def test():
    # call _test(arg1, arg2)

def _test(arg1, arg2):
    # code here

Putting _test inside of test() just makes it nicer, but if you need to call 
_test outside of test(), then you need to make it its own function. Remember 
though, just because it's a top-level function like the rest of them, 
doesn't mean that you can directly access it from a URL. You still need 
test(): as a middleman. Any function that starts with _ or contains function 
parameters is not callable via URL.

Reply via email to