def _controller(thing): try: event = Event.for_name(thing.replace('_', ' '), create=create) except EventNotFound: abort(404) return fn(event)
def index(): return render_template("index.html", events=Event.all())