Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # grab your variables from the request
  2. nameFirst = context.REQUEST.get('nameFirst', None)
  3. nameLast = context.REQUEST.get('nameLast', None)
  4.  
  5. # call your zsql method, passing it your variables
  6. context.queries.updateRegistrant(nameFirst=nameFirst, nameLast=nameLast)
  7.  
  8.  
  9. #build your redirect path
  10. redirURL = 'order_summary?liid='+str(liid)+'&editKey='+editKey
  11.  
  12.  
  13. #return your redirect path
  14. return context.REQUEST.RESPONSE.redirect(redirURL)
Add Comment
Please, Sign In to add comment