Example #1
0
 def get(self):
     path = helper.template_path("login.tmpl")
     template_args = {}
     if self.request.get("redirect_url"):
         template_args = {"redirect_url": self.request.get("redirect_url")}
     if self.request.get("message"):
         template_args["message"] = self.request.get("message")
     self.response.out.write(template.render(path, template_args))
Example #2
0
 def get(self):
   path = helper.template_path("login.tmpl")
   template_args = {}
   if self.request.get("redirect_url"):
     template_args = { "redirect_url": self.request.get("redirect_url")}
   if self.request.get("message"):
     template_args["message"] = self.request.get("message")
   self.response.out.write(template.render(path, template_args))
Example #3
0
 def get(self):
   url = POOTER_API_ENDPOINT + "poot/all/1"
   
   result = urlfetch.fetch(url)
   received_content = result.content
   logging.info(received_content)
   path = helper.template_path("poots.tmpl")
   template_args = dict(self.template_args.items() + json.loads(received_content).items())
   self.response.out.write(template.render(path, template_args))
Example #4
0
    def get(self):
        url = POOTER_API_ENDPOINT + "poot/all/1"

        result = urlfetch.fetch(url)
        received_content = result.content
        logging.info(received_content)
        path = helper.template_path("poots.tmpl")
        template_args = dict(self.template_args.items() +
                             json.loads(received_content).items())
        self.response.out.write(template.render(path, template_args))
Example #5
0
  def get(self, poot_key_name):
    url = POOTER_API_ENDPOINT + "poot/" + poot_key_name
    result = urlfetch.fetch(url)
    
    received_content = result.content
       
    path = helper.template_path("poot.tmpl")
    template_args = dict(self.template_args, **json.loads(received_content))
    template_args["poot_key"] = poot_key_name

    self.response.out.write(template.render(path, template_args))
Example #6
0
    def get(self, poot_key_name):
        url = POOTER_API_ENDPOINT + "poot/" + poot_key_name
        result = urlfetch.fetch(url)

        received_content = result.content

        path = helper.template_path("poot.tmpl")
        template_args = dict(self.template_args,
                             **json.loads(received_content))
        template_args["poot_key"] = poot_key_name

        self.response.out.write(template.render(path, template_args))
Example #7
0
 def get(self):
     path = helper.template_path("prizes.tmpl")
     self.response.out.write(template.render(path, self.template_args))
Example #8
0
 def get(self):
   path = helper.template_path("prizes.tmpl")
   self.response.out.write(template.render(path, self.template_args))