Did I find the right examples for you? yes no

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

src/m/d/mdemos.server-1.0.1dev/mdemos/server/websetup/bootstrap.py   mdemos.server(Download)
        u.password = u'managepass'
 
        model.DBSession.add(u)
 
        g = model.Group()
        g.users.append(u)
 
        model.DBSession.add(g)
 
        p = model.Permission()
        p.permission_name = u'manage'
        p.description = u'This permission give an administrative right to the bearer'
        p.groups.append(g)
 
        model.DBSession.add(p)
        u1.password = u'editpass'
 
        model.DBSession.add(u1)
        model.DBSession.flush()
        transaction.commit()

src/m/d/mdemos.server-1.0.1dev/mdemos/server/tests/models/__init__.py   mdemos.server(Download)
            new_attrs.update(self.do_get_dependencies())
            self.obj = self.klass(**new_attrs)
            DBSession.add(self.obj)
            DBSession.flush()
            return self.obj