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