def display_changeset(): if request.args.has_key("id"): id = request.args["id"] cset = helpers.get_changeset_or_404(id) sentence = changemonger.changeset_sentence(cset) return render_template("changeset_details.haml", changeset=cset, sentence=sentence) else: return render_template("changeset.haml", title="Bad Changeset")
def display_changeset(): if request.args.has_key('id'): id = request.args['id'] cset = helpers.get_changeset_or_404(id) sentence = changemonger.changeset_sentence(cset) return render_template('changeset_details.haml', changeset=cset, sentence=sentence) else: return render_template('changeset.haml', title="Bad Changeset")
def show_changeset(id): cset = helpers.get_changeset_or_404(id) sentence = changemonger.changeset_sentence(cset) return sentence
def show_changeset(id): cset = helpers.get_changeset_or_404(id) sentence = changemonger.changeset_sentence(cset) return jsonify(sentence=sentence)