예제 #1
0
파일: pages.py 프로젝트: crazy2k/pfweb
	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')
예제 #2
0
파일: pages.py 프로젝트: crazy2k/pfweb
	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)