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/m/a/max-3.6/max/rest/admin/security.py   max(Download)
    mmdb = MADMaxDB(context.db)
    query = {}
    roles = mmdb.security.search(query, flatten=1)
 
    handler = JSONResourceRoot(roles)
    mmdb = MADMaxDB(context.db)
    query = {}
    security = mmdb.security.search(query)[0]
    security.setdefault('roles', {})
    security['roles'].setdefault(role, [])
    mmdb = MADMaxDB(context.db)
    query = {}
    security = mmdb.security.search(query)[0]
    security.setdefault('roles', {})
    security['roles'].setdefault(role, [])