hi all,
i am a learner in turbogears
could you find me some help with this,
i have a template displaying a table
@expose(template="webtool.templates.student_details")
def student_details(self):
s=Student.select()
return dict(stud_det=stud_det)
@expose()
def retrieve(self,stud_id):
error={}
try:
student=Student.get(stud_id)
except:
error['student'] = "Error:Student not found"
return dict(error=error)
redirect('/student_record?stud_id='+str(stud_id))
if i have to send the error back to the
template(student_details.kid) from where
i have
called the function.what is the proceedure i should follow?
thanks in advance
vimal das
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---