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