示例#1
0
def handler(message):
    """
    Handler if the user is not logged in.
    """
    h.flash(
        "You can not access that page. Make sure you are logged in. You need to be facebook friends with "
        + config.get("name") + " to listen to music.")
    redirect(url(controller='about', action='index'))
示例#2
0
def adminhandler(message):
    """
    Handler if the user is not admin.
    """
    h.flash("You need to be the admin to change settings.")
    redirect(url(controller='about', action='index'))