Does the url still have the _signature key when you pass the vars? Passing your own vars may clobber the auto hmac key generation that normally takes place when you set user_signature.
Look for Digitally Signed URLs here http://web2py.com/books/default/chapter/29/04 On Wednesday, March 20, 2013 9:49:14 AM UTC-4, Jim S wrote: > > Hi > > Working with SQLFORM.grid. I'm providing my own 'Add' button because I > want to gather some initial values before presenting the user with the > .grid 'new' page. > > So, when you click on my Add button a bootstrap modal window pops up and > you then select a 'site'. When I click on Next on my modal window I want > to pass that site value to the 'new' page from the .grid. I'm generating > the URL as follows: > > url = URL('applications', 'workorders', args=('new','workorder'), > user_signature=True,vars=dict(siteId=siteId)) > redirect(url) > > When I run this I get a 'not authorized' message. > > However, if I take out: vars=dict(siteId=siteId) ...it works fine. > > I don't know why I'm getting a 'not authorized' only when I'm passing vars > to the URL function. > > Any ideas? > > -Jim > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

