Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/t/o/tornado-bootstrap-HEAD/src/handlers/entity.py   tornado-bootstrap(Download)
    def get(self):
        self.render('entity/index.html', data=self.repository.list())
 
    def post(self):
        self.repository.save(entity(self.param('field1'), self.param('field2')))
        self.render('entity/index.html', data=self.repository.list())
        msg.field2 = self.param('field2')
        self.repository.save(msg)
        self.render('entity/index.html', data=self.repository.list())
 
    def delete(self, id):
        self.repository.remove(self.repository.load(id))
        self.render('entity/index.html', data=self.repository.list())