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..."
def list_unread(): notifications = Notifications('list_unread') return notifications.render("app/notification/list_unread")
def mark_as_read(): if "notifications_ids" in request.vars: Notifications('mark_as_read') return "all marked as read.." else: return "nothing to do..."
def count(): notifications = Notifications('counter') return notifications.context.count
def list_latest(): notifications = Notifications('list_latest') return notifications.render("app/notification/list_latest")
def list_unread(): notifications = Notifications() notifications.list_unread(session.auth.user.id) return notifications.render("app/notification/list_unread")
def count(): notifications = Notifications() notifications.counter(session.auth.user.id) return notifications.context.count
def list_latest(): notifications = Notifications() notifications.list_latest(session.auth.user.id) return notifications.render("app/notification/list_latest")