예제 #1
0
파일: results.py 프로젝트: dpodhola/wwscc
	def bracket(self):
		c.javascript.append('/js/jquery-1.4.2.min.js');
		challenge = self.session.query(Challenge).get(int(request.GET.get('id', 0)))
		b = Bracket(challenge.depth)  # Just getting the coords, no drawing takes place
		b.getImage()
		c.coords = b.getCoords()
		c.cid = challenge.id
		return render_mako('/challenge/bracketbase.mako')
예제 #2
0
	def bracket(self):
		c.javascript.append('/js/external/jquery-1.9.0.js');
		challenge = self.session.query(Challenge).get(myint(request.GET.get('id', 0)))
		if challenge is None:
			abort(404, "Invalid or no challenge id")
		b = Bracket(challenge.depth)  # Just getting the coords, no drawing takes place
		b.getImage()
		c.coords = b.getCoords()
		c.cid = challenge.id
		return render_mako('/challenge/bracketbase.mako')
예제 #3
0
 def bracket(self):
     c.javascript.append('/js/external/jquery-1.9.0.js')
     challenge = self.session.query(Challenge).get(
         myint(request.GET.get('id', 0)))
     if challenge is None:
         abort(404, "Invalid or no challenge id")
     b = Bracket(
         challenge.depth)  # Just getting the coords, no drawing takes place
     b.getImage()
     c.coords = b.getCoords()
     c.cid = challenge.id
     return render_mako('/challenge/bracketbase.mako')