Esempio n. 1
0
	def POST(self):
		sid = web.cookies('sid')['sid']
		i = web.input('cod', 'nota')

		ret = server.set_estado_materia(sid, i.cod, int(i.nota))
		if not ret:
			raise web.seeother('corregirnota?action_ok=2')
			
		raise web.seeother('corregirnota?action_ok=1')
Esempio n. 2
0
	def POST(self):
		sid = web.cookies('sid')['sid']
		i = web.input('cod')

		ret = server.set_estado_materia(sid, i.cod, -1)
		if not ret:
			raise web.seeother('cursandomateria?action_ok=2')

		raise web.seeother('cursandomateria?action_ok=1;cod=%s' % i.cod)