redirect(URL(whatever)) in your form.accepts clause
so if the next view is default/other.html
it would be redirect(URL('other'))?
Right, assuming that the current function is in default. Otherwise redirect(URL('default', 'other'))
##this block is in my index function :
json_gotten = simplejson.load(json_data)
redirect(URL('mathworksheet'))
#redirect(URL(r=request,f='manageJSON',args=json_gotten))
return dict(passedin=json_gotten)
number_of_problems=json_gotten["number_of_problems"],
questions=json_gotten["questions"])
def index():
if request.vars :
quest_types = request.vars.typeofques
quest_num = request.vars.numofques
RetURL="http://mathmakerapi.appspot.com/cs34wmathmaker/default/
worksheet.json?numberques="+quest_num+"&questype="+quest_types
json_data = urllib.urlopen(RetURL)
jsonresult = simplejson.load(json_data)
session.jresult = jsonresult
#redirect(URL('mathworksheet'))
redirect(URL(r=request,f='mathworksheet',args=jresult))
return dict(passedin=jsonresult)
response.view = 'default/other.html'