Esempio n. 1
0
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")
Esempio n. 2
0
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")
Esempio n. 3
0
def show_changeset(id):
    cset = helpers.get_changeset_or_404(id)
    sentence = changemonger.changeset_sentence(cset)
    return sentence
Esempio n. 4
0
def show_changeset(id):
    cset = helpers.get_changeset_or_404(id)
    sentence = changemonger.changeset_sentence(cset)
    return jsonify(sentence=sentence)