def admin_add_userfeed(): """ Present page to add a user feed to the system """ try: scripts = External.feeds_available_user_scripts() except OSError, err: flash(err) scripts = []
def admin_edit_userfeed(feed_id): """ Present page to edit a user feed in the system """ try: feed = UFeeds.UFeed(f_id=feed_id) except KeyError: return abort(404) try: scripts = External.feeds_available_user_scripts() except OSError, err: flash(err) scripts = []
def admin_add_userfeed(): """ Present page to add a user feed to the system """ try: scripts = External.feeds_available_user_scripts() except OSError as err: flash(err) scripts = [] return render_template( "admin_edit_user_feed.html", feed={'id': 0}, scripts=scripts )
def admin_add_userfeed(): """ Present page to add a user feed to the system """ try: scripts = External.feeds_available_user_scripts() except OSError as err: flash(err) scripts = [] return render_template( "admin_edit_user_feed.html", feed={'id': 0}, scripts=scripts )
def admin_edit_userfeed(feed_id): """ Present page to edit a user feed in the system """ try: feed = UFeeds.UFeed(f_id=feed_id) except KeyError: return abort(404) try: scripts = External.feeds_available_user_scripts() except OSError as err: flash(err) scripts = [] return render_template( "admin_edit_user_feed.html", feed=feed, scripts=scripts )