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