コード例 #1
0
ファイル: main.py プロジェクト: xurubin/HTTPNotify
    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))
コード例 #2
0
ファイル: main.py プロジェクト: xurubin/HTTPNotify
 def get(self):
     for job_info in db_access.retrieve_all():
         if job_info['status'] == constant.ASSIGNED:
             utils.do_job(job_info)