Exemplo n.º 1
0
    def get(self):
        current_user = users.get_current_user()
        profile = User.query(User.email == str(current_user.email())).get()
        if not profile:
            profile = User()
            profile.email = current_user.email()
            profile.put()

        params = {"profile": profile}
        self.render_template("admin/profile.html", params)
Exemplo n.º 2
0
    def get(self):
        users = User.query(User.deleted == False).fetch()

        admins = []
        students = []

        for user in users:
            if user.email in ADMINS:
                admins.append(user)
            else:
                students.append(user)

        params = {"admins": admins, "students": students}
        self.render_template("admin/users_list.html", params)
Exemplo n.º 3
0
    def get(self):
        users = User.query(User.deleted == False).fetch()

        admins = []
        students = []

        for user in users:
            if user.email in ADMINS:
                admins.append(user)
            else:
                students.append(user)

        params = {"admins": admins, "students": students}
        self.render_template("admin/users_list.html", params)