import sys

from challengeutils import install, get_config

if __name__ == '__main__':
	name = sys.argv[1]
	install(name, get_config(name))
Exemple #2
0
 def post(self, name):
     print 'start', name
     if not is_challenge(name):
         raise tornado.web.HTTPError(404)
     activate_challenge(name, get_config(name))
 def post(self, name):
     print 'start', name
     if not is_challenge(name):
         raise tornado.web.HTTPError(404)
     activate_challenge(name, get_config(name))
Exemple #4
0
 def get(self, name):
     if not is_challenge(name):
         raise tornado.web.HTTPError(404)
     self.write(jsonpack(get_config(name)))
 def get(self, name):
     if not is_challenge(name):
         raise tornado.web.HTTPError(404)
     self.write(jsonpack(get_config(name)))