9 lines
426 B
Plaintext
9 lines
426 B
Plaintext
ns = params_kw.copy()
|
|
if not ns.get('id'):
|
|
return {'widgettype':'Error','options':{'title':'Error','message':'missing id','cwidth':16,'cheight':9,'timeout':3}}
|
|
db = DBPools()
|
|
dbname = get_module_dbname('pcpool')
|
|
async with db.sqlorContext(dbname) as sor:
|
|
await sor.D('compute_pool', {'id': ns['id']})
|
|
return {'widgettype':'Message','options':{'cwidth':16,'cheight':9,'title':'Success','timeout':3,'message':'ok'}}
|