예제 #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', {})
예제 #3
0
 def get(self):
     template.render_template(self, 'index.html', {})
예제 #4
0
 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', {})
예제 #9
0
 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', {})