Example #1
0
    def get(self):
        self.response.headers['Content-Type'] = 'text/html'
        
        template_values = {'entries' : [json.dumps(e, cls=EntityEncoder) for e in db_access.retrieve_all()]}

        path = os.path.join(os.path.dirname(__file__), 'index.html')
        self.response.out.write(template.render(path, template_values))
Example #2
0
 def get(self):
     for job_info in db_access.retrieve_all():
         if job_info['status'] == constant.ASSIGNED:
             utils.do_job(job_info)