bugfix
This commit is contained in:
parent
a2fb1d50bb
commit
ca05810fbd
31
filemgr/filemgr.py
Normal file
31
filemgr/filemgr.py
Normal file
@ -0,0 +1,31 @@
|
||||
from ahserver.serverenv import get_serverenv
|
||||
from sqlor.dbpools import DBPools
|
||||
from ahserver.auth_api import get_userinfo
|
||||
|
||||
def get_dbname():
|
||||
f = get_serverenv('get_module_dbname')
|
||||
dbname = f('filemgr')
|
||||
return dbname
|
||||
|
||||
class FileMgr:
|
||||
def __init__(self, biztype):
|
||||
self.biztype = biztype
|
||||
|
||||
async def get_bizinfo_nodes(self, request):
|
||||
db = DBPools()
|
||||
userinfo = await get_session_userinfo(request)
|
||||
dbname = get_dbname()
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
ns = {
|
||||
'orgid':userorgid,
|
||||
'biztype':self.biztype
|
||||
}
|
||||
recs = await sor.R('folderinfo', ns)
|
||||
return recs
|
||||
return []
|
||||
|
||||
async def add_biznfo_node(self, request):
|
||||
|
||||
|
||||
|
||||
|
BIN
models/file.xlsx
Normal file
BIN
models/file.xlsx
Normal file
Binary file not shown.
BIN
models/folder.xlsx
Normal file
BIN
models/folder.xlsx
Normal file
Binary file not shown.
BIN
models/folderinfo.xlsx
Normal file
BIN
models/folderinfo.xlsx
Normal file
Binary file not shown.
BIN
models/~$folderinfo.xlsx
Normal file
BIN
models/~$folderinfo.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user