Calling functions in a subsession

At the time you've implemented a generic set of functions for regular reuse you'd like to pack them into a module which can be called like a single page function. It would also be nice if the called function could return to the caller without actually knowing its name or arguments.

application.class provides such mechanisms: A function can be "called" (in matters of returning to the caller later on) by marking the arguments to the called function using view::set_caller().

In case you need sessions that live on outside modules, access the application's dbsession instance in member variable application::session.