Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
def rm(uid=None, **opts):
	no_all(opts, uid)
	force = opts['FORCE']

	u = User(opts['DB_URI'])
	u.rm(uid, force=force)