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.delete(object_)
            orm.session.refresh(self.user)
            orm.session.flush()
        except Exception, e:
            orm.session.clear()

src/d/a/daily-spent-0.1-alpha/src/dailyspents/controller/UserController.py   daily-spent(Download)
                user.settings = orm.UserSettings()
            orm.session.save(user)
            orm.session.flush()
        except Exception, e:
            orm.session.expunge(user)