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