+ def json_edit(self, sledrun_id):
+ q = db.session.query(WrSledrunCache)
+ sledrun = q.get(sledrun_id)
+ if sledrun is None:
+ abort(404)
+ h = PylonsHelper()
+ return render_template('json_editor.html',
+ schema_url=url_for('static', filename='schema_v1.json'),
+ #json_url=url_for('static', filename='latschenhuette.json')
+ json_url=h.wiki(sledrun.page_title)
+ )
+