Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def render_scheduleFollowUp(request):
- errors = []
- try:
- studentID = int(request.resource.args[0])
- student = store.get(Student, studentID)
- except Exception:
- return _error("Student not found")
- try: fields = json.load(request.content)[0][u'fields']
- except Exception: return _error("Fields not found")
- try:
- method = fields["method"].encode("utf-8")
- except Exception:
- return errors.append(("followup-n1-method", "Invliad value"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement