Esempio n. 1
0
 def _do_delete(self):
     item = Session.query(self.model).get(self.get_id())
     Session.delete(item)
     self.request.session.flash(u'Item deleted successfully.', 'success')
     return HTTPFound(location=g.url(self.url_base))
Esempio n. 2
0
 def _do_delete(self):
     item = Session.query(self.model).get(self.get_id())
     Session.delete(item)
     self.request.session.flash(u'Item deleted successfully.', 'success')
     return HTTPFound(location=g.url(self.url_base))