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