Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/d/a/daily-spent-0.1-alpha/src/dailyspents/controller/GenericController.py   daily-spent(Download)
    def save(self, object_):
        try:
            orm.session.save_or_update(object_)
            orm.session.refresh(self.user)
            orm.session.flush()
            orm.session.refresh(object_)
    def deleteById(self, id_):
        try:
            object_ = self.getById(id_)
            orm.session.delete(object_)
            orm.session.refresh(self.user)