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
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
@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,
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')}},
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,
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':
6 matches
Mail list logo