Пример #1
0
 def get(self, *args, **kwargs):
     gp, uid = is_loged(self)
     if gp == 's':
         self.render('stu_message.html', id=uid, message=get_all_notif(), comments=get_all_comments(uid),
                     active='dsh', active_slide='msg')
     else:
         self.redirect('/404')
Пример #2
0
 def get(self, *args, **kwargs):
     gp, uid = is_loged(self)
     if gp == 's':
         self.render('stu_message.html',
                     id=uid,
                     message=get_all_notif(),
                     comments=get_all_comments(uid),
                     active='dsh',
                     active_slide='msg')
     else:
         self.redirect('/404')
Пример #3
0
    def get(self):
        uid = self.get_secure_cookie('id')
        info = get_all_notif()

        self.render('notification.html',id=uid,active='notification', info = info)