[web2py] Re: Form self-submit broken after redirection

2013-11-28 Thread Anthony
Can you attach a minimal app that reproduces the problem? -- 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

[web2py] Re: Form self-submit broken after redirection

2013-11-27 Thread Niphlod
if you want to port the code that does the signature in python to javascript, feel free to submit it :D However, you should pass along the hmac_key, and doing so, you're exposing what you're trying hard to mask. However, it's kinda of a non-question as per the markup you posted. if your

[web2py] Re: Form self-submit broken after redirection

2013-11-27 Thread weheh
@Niphlod -- thanks for your insights. Sorry, I have not enough juice to dig deep enough into the web2py_component to see how it's done and then port signature into it. But if I did I would definitely submit it as web2py_component is about the single most cool thing in all of web2py. That said,

[web2py] Re: Form self-submit broken after redirection

2013-11-26 Thread weheh
Sorry for the slow response. From within my main view, at the end, I do this: script $(document).ready(function() { {{if auth.is_logged_in() and session.state:}} $(#mydialog).dialog(open); web2py_component({{= URL('mycontroller', 'index')}},

[web2py] Re: Form self-submit broken after redirection

2013-11-22 Thread weheh
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,

[web2py] Re: Form self-submit broken after redirection

2013-11-22 Thread Anthony
I tried your code and it works fine for me. Maybe we need to see more of the code and understand the workflow better. On Friday, November 22, 2013 7:55:50 AM UTC-5, weheh wrote: It works like this: # index controller def index(): # some preamble if session.state == 'a':