示例#1
0
def mark_as_read():
    notifications = Notifications()
    if "notifications_ids" in request.vars:
        notifications.mark_as_read(session.auth.user.id, request.vars.notifications_ids)
        return "all marked as read.."
    else:
        return "nothing to do..."
示例#2
0
def list_unread():
    notifications = Notifications('list_unread')
    return notifications.render("app/notification/list_unread")
示例#3
0
def mark_as_read():
    if "notifications_ids" in request.vars:
        Notifications('mark_as_read')
        return "all marked as read.."
    else:
        return "nothing to do..."
示例#4
0
def count():
    notifications = Notifications('counter')
    return notifications.context.count
示例#5
0
def list_latest():
    notifications = Notifications('list_latest')
    return notifications.render("app/notification/list_latest")
示例#6
0
def list_unread():
    notifications = Notifications()
    notifications.list_unread(session.auth.user.id)
    return notifications.render("app/notification/list_unread")
示例#7
0
def count():
    notifications = Notifications()
    notifications.counter(session.auth.user.id)
    return notifications.context.count
示例#8
0
def list_latest():
    notifications = Notifications()
    notifications.list_latest(session.auth.user.id)
    return notifications.render("app/notification/list_latest")