- session['flash'] = 'Datum wurde erfolgreich geändert'
- session.save()
- return redirect(url(controller='bericht', action='view', id=id))
-
-
- def new(self, id):
- "Displays a form to create a new page"
- return "Nicht implementiert."
-
-
- def create(self):
- "Saves the information submitted from new() and redirects to view()"
- return "Nicht implementiert."
-
-
- def edit(self, id):
- "Displays a form for editing the page id"
- return "Nicht implementiert."
-
-
- def save(self, id):
- "Saves the page id and redirects to view()"
- return "Nicht implementiert."
-
-
- def list(self):
- "Lists all reports"
- q = model.meta.Session.query(model.WrReport)
- q = q.order_by(sa.sql.expression.desc(model.WrReport.id))
- c.paginator = paginate.Page(q, page=int(request.params.get('page', 1)), items_per_page = 25)
- return render('bericht_list.html')
-
-
- def delete(self, id):
- "Deletes a page"
- return "Nicht implementiert."
+ flash('Datum wurde erfolgreich geändert')
+ return redirect(url_for('bericht_view', id=id))