It works like this: # index controller def index(): # some preamble if session.state == 'a': redirect(URL('thiscontoller', 'myfunc1.load', user_signature=True)) # some more states and redirects
#later on def myfunc1(): form = SQLFORM.factory(Field(...the usual stuff, nothing fancy...),Field (...), Field(...)) if form.process().accepted: # process form elif form.errors: response.flash = 'error' return dict(html=form) If myfunc1 is called directly it self-submits fine. But if is reached via the index function, it doesn't self submit. Hope that clarifies. Must be something really dumb-a** simple but I'm not seeing it. -- 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/groups/opt_out.