def get(self):
     #logging.info(os.path.join(os.path.dirname(__file__))
     articles = Article.query().order(-Article.date)
     templatevalues = {
         'user_log' : checkcookies(self),
     }
     template = jinja_environment.get_template('create.html')
     self.response.out.write(template.render({'templatevalues':templatevalues}))
 def get(self):
     articles = Article.query().order(-Article.date)
     templatevalues = {
         'articles': articles,
         'user_log' : checkcookies(self),
     }  
     template = jinja_environment.get_template('index.html')
     self.response.out.write(template.render({'templatevalues':templatevalues}))
 def get(self):
     #logging.info(os.path.join(os.path.dirname(__file__))
     articles = Article.query().order(-Article.date)
     templatevalues = {
         'user_log': checkcookies(self),
     }
     template = jinja_environment.get_template('create.html')
     self.response.out.write(
         template.render({'templatevalues': templatevalues}))
 def get(self):
     articles = Article.query().order(-Article.date)
     templatevalues = {
         'articles': articles,
         'user_log': checkcookies(self),
     }
     template = jinja_environment.get_template('index.html')
     self.response.out.write(
         template.render({'templatevalues': templatevalues}))
 def post(self):
     datearticle = self.request.get('datearticle')
     datearticle = datetime.strptime(datearticle+' 00:00:00', '%m/%d/%Y %H:%M:%S')
     articles = Article.query(Article.date == datearticle).order(-Article.date)
     templatevalues = {
         'articles': articles,
         'user_log' : checkcookies(self),
     }  
     template = jinja_environment.get_template('index.html')
     self.response.out.write(template.render({'templatevalues':templatevalues}))
 def post(self):
     datearticle = self.request.get('datearticle')
     datearticle = datetime.strptime(datearticle + ' 00:00:00',
                                     '%m/%d/%Y %H:%M:%S')
     articles = Article.query(
         Article.date == datearticle).order(-Article.date)
     templatevalues = {
         'articles': articles,
         'user_log': checkcookies(self),
     }
     template = jinja_environment.get_template('index.html')
     self.response.out.write(
         template.render({'templatevalues': templatevalues}))