bugfix
This commit is contained in:
parent
ad0b9a2f58
commit
860402f974
@ -1,40 +1,30 @@
|
||||
{
|
||||
"widgettype":"PopupWindow",
|
||||
"widgettype":"ModalForm",
|
||||
"options":{
|
||||
"archor":"cc",
|
||||
"cwidth":16,
|
||||
"chegith":10,
|
||||
"title":"add admin user"
|
||||
},
|
||||
"subwidgets":[
|
||||
{
|
||||
"id":"adminuser",
|
||||
"widgettype":"Form",
|
||||
"options":{
|
||||
"cols":1,
|
||||
"fields":[
|
||||
{
|
||||
"name":"username",
|
||||
"label":"用户名",
|
||||
"uitype":"str"
|
||||
},
|
||||
{
|
||||
"name":"password",
|
||||
"label":"密码",
|
||||
"uitype":"password"
|
||||
},
|
||||
{
|
||||
"name":"chkpassword",
|
||||
"label":"确认密码",
|
||||
"uitype":"password"
|
||||
}
|
||||
]
|
||||
"cwidth":20,
|
||||
"cheight":30,
|
||||
"title":"增加管理员",
|
||||
"fields":[
|
||||
{
|
||||
"name":"username",
|
||||
"label":"用户名",
|
||||
"uitype":"str"
|
||||
},
|
||||
{
|
||||
"name":"password",
|
||||
"label":"密码",
|
||||
"uitype":"password"
|
||||
},
|
||||
{
|
||||
"name":"chkpassword",
|
||||
"label":"确认密码",
|
||||
"uitype":"password"
|
||||
}
|
||||
}
|
||||
],
|
||||
]
|
||||
},
|
||||
"binds":[
|
||||
{
|
||||
"wid":"adminuser",
|
||||
"wid":"self",
|
||||
"event":"submit",
|
||||
"actiontype":"urlwidget",
|
||||
"target":"self",
|
||||
|
@ -4,7 +4,7 @@ dbname = await rfexe('get_module_dbname', 'sage')
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
orgid = await register_user(sor, params_kw)
|
||||
try:
|
||||
ownerid = await get_owner_orgid(sor, orgid)
|
||||
ownerid = await get_owner_orgid(sor)
|
||||
await openCustomerAccounts(sor, ownerid, orgid)
|
||||
except Exception as e:
|
||||
fe = format_exc()
|
Loading…
Reference in New Issue
Block a user