示例#1
0
文件: oauth.py 项目: Yasumoto/iamble
  def get(self):
    """"""
    template_params = template.get_params()
    this_user = models.Ambler.get_by_id(users.get_current_user().email())

    existing_services = this_user.GetActiveServices() if this_user else []

    service_list = list()
    for service in self.SERVICS:
      enabled = service.service_name in existing_services
      initialized_service = service(this_user, enabled)
      service_list.append(initialized_service)

    template_params['services'] = service_list
    template_params['user'] = this_user

    template.render_template(self, HOME_TEMPLATE, template_params)
示例#2
0
 def get(self):
     template.render_template(self, 'shows.html', {})
 def get(self):
     template.render_template(self, 'index.html', {})
 def get(self):
     template.render_template(self, 'index.html', {})
示例#5
0
 def get(self):
     template.render_template(self, 'gallery.html', {})
示例#6
0
 def get(self):
     template.render_template(self, 'error.html', {})
示例#7
0
 def get(self):
     template.render_template(self, 'shows.html', {})
示例#8
0
 def get(self):
     template.render_template(self, 'about.html', {})
 def get(self):
     template.render_template(self, "gallery.html", {})
示例#10
0
 def get(self):
     template.render_template(self, 'about.html', {})
示例#11
0
 def get(self):
     template.render_template(self, 'contact.html', {})