Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/bodhi/services/user.py   bodhi(Download)
def get_user(request):
    db = request.db
    id = request.matchdict.get('name')
    user = User.get(id, request.db)

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_generic.py   bodhi(Download)
        # The user should now exist, and be a member of the releng group
        user = User.get(u'lmacken', db)
        self.assertEquals(user.name, u'lmacken')
        self.assertEquals(len(user.groups), 1)
        resp = remember_me(None, req, info)
        user = User.get(u'lmacken', db)
        self.assertEquals(len(user.groups), 0)
        self.assertEquals(len(Group.get(u'releng', db).users), 0)