def _change(uid, opts): no_all(opts, uid) force = opts['FORCE'] flags = opts['FLAGS'] u = User(opts['DB_URI']) u.change(uid, flags=flags, force=force)
def _change(domain, opts): no_all(opts, domain) force = opts['FORCE'] flags = opts['FLAGS'] u = Domain(opts['DB_URI']) u.change_domain(domain, flags=flags, force=force)
def rm(domain=None, **opts): no_all(opts, domain) force = opts['FORCE'] u = Domain(opts['DB_URI']) if opts['DID']: u.rm_did(domain, force) elif opts['DEPTH']: u.rm_did_for_domain(domain, force) else: u.rm_domain(domain, force)
def rm(uid=None, **opts): no_all(opts, uid) force = opts['FORCE'] u = User(opts['DB_URI']) u.rm(uid, force=force)