示例#1
0
文件: main.py 项目: kiwinoy/hd-events
 def get(self):
     user = users.get_current_user()
     logs = HDLog.get_logs_list()
     if user:
         logout_url = users.create_logout_url('/')
     else:
         login_url = users.create_login_url('/')
     show_all_nav = user
     self.response.out.write(template.render('templates/logs.html', locals()))
示例#2
0
文件: main.py 项目: jernst/hd-events
 def get(self):
     user = users.get_current_user()
     logs = HDLog.get_logs_list()
     if user:
         logout_url = users.create_logout_url('/')
     else:
         login_url = users.create_login_url('/')
     show_all_nav = user
     self.response.out.write(template.render('templates/logs.html', locals()))
示例#3
0
 def get(self):
     user = users.get_current_user()
     logs = HDLog.get_logs_list()
     if user:
         logout_url = users.create_logout_url("/")
     else:
         login_url = users.create_login_url("/")
     show_all_nav = user
     # this is not the permanent answer but just for now
     cdn = "http://cdn.hackerdojo.com"
     self.response.out.write(template.render("templates/logs.html", locals()))
示例#4
0
 def get(self):
     user = users.get_current_user()
     logs = HDLog.get_logs_list()
     if user:
         logout_url = users.create_logout_url('/')
     else:
         login_url = users.create_login_url('/')
     show_all_nav = user
     # this is not the permanent answer but just for now
     cdn = 'http://cdn.hackerdojo.com'
     self.response.out.write(
         template.render('templates/logs.html', locals()))