Beispiel #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..."
Beispiel #2
0
def list_unread():
    notifications = Notifications('list_unread')
    return notifications.render("app/notification/list_unread")
Beispiel #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..."
Beispiel #4
0
def count():
    notifications = Notifications('counter')
    return notifications.context.count
Beispiel #5
0
def list_latest():
    notifications = Notifications('list_latest')
    return notifications.render("app/notification/list_latest")
Beispiel #6
0
def list_unread():
    notifications = Notifications()
    notifications.list_unread(session.auth.user.id)
    return notifications.render("app/notification/list_unread")
Beispiel #7
0
def count():
    notifications = Notifications()
    notifications.counter(session.auth.user.id)
    return notifications.context.count
Beispiel #8
0
def list_latest():
    notifications = Notifications()
    notifications.list_latest(session.auth.user.id)
    return notifications.render("app/notification/list_latest")