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 post(self):
        self.repository.save(entity(self.param('field1'), self.param('field2')))
        self.render('entity/index.html', data=self.repository.list())
 
class entity_handler(request_handler):
    def put(self, id):
        msg = self.repository.load(id)
        msg.field1 = self.param('field1')
        msg.field2 = self.param('field2')
        self.repository.save(msg)