Esempio n. 1
0
def admin_add_feed():
    """ Present page to add a feed to the system """
    try:
        scripts = External.feeds_available_group_scripts()
    except OSError, err:
        flash(err)
        scripts = []
Esempio n. 2
0
def admin_add_feed():
    """ Present page to add a feed to the system """
    try:
        scripts = External.feeds_available_group_scripts()
    except OSError, err:
        flash(err)
        scripts = []
Esempio n. 3
0
def admin_edit_feed(feed_id):
    """ Present page to edit a feed in the system """
    try:
        feed = Feeds.Feed(f_id=feed_id)
    except KeyError:
        return abort(404)
    try:
        scripts = External.feeds_available_group_scripts()
    except OSError, err:
        flash(err)
        scripts = []
Esempio n. 4
0
def admin_edit_feed(feed_id):
    """ Present page to edit a feed in the system """
    try:
        feed = Feeds.Feed(f_id=feed_id)
    except KeyError:
        return abort(404)
    try:
        scripts = External.feeds_available_group_scripts()
    except OSError as err:
        flash(err)
        scripts = []
    return render_template(
        "admin_edit_group_feed.html",
        feed=feed,
        scripts=scripts
    )
Esempio n. 5
0
def admin_edit_feed(feed_id):
    """ Present page to edit a feed in the system """
    try:
        feed = Feeds.Feed(f_id=feed_id)
    except KeyError:
        return abort(404)
    try:
        scripts = External.feeds_available_group_scripts()
    except OSError as err:
        flash(err)
        scripts = []
    return render_template(
        "admin_edit_group_feed.html",
        feed=feed,
        scripts=scripts
    )