Ejemplo n.º 1
0
    def get(self,iid):
        gp, uid = is_loged(self)

        if gp == 't':
            try:
                delete_notif(iid,uid)
                self.redirect('/dash/notifications')
            except Exception as e:
                print e
        else:
            self.redirect('/')
Ejemplo n.º 2
0
    def get(self,iid):
        gp, uid = is_loged(self)

        if gp == 't':
            try:
                delete_notif(iid,uid) # 删除记录
                from submitAssignment import delete_updated
                delete_updated('notif',iid) # 删除文件

                self.redirect('/dash/notifications')

            except Exception as e:
                print e
        else:
            self.redirect('/')