fix: override file_uploaded to return FileMgrResult — base returns None causing NoneType.status
This commit is contained in:
parent
0203dc1c24
commit
82579b14ad
@ -11,7 +11,7 @@ from appPublic.dictObject import DictObject
|
||||
from sqlor.dbpools import DBPools
|
||||
from ahserver.serverenv import ServerEnv
|
||||
from ahserver.filestorage import FileStorage
|
||||
from filemgr.filemgr import FileMgr
|
||||
from filemgr.filemgr import FileMgr, FileMgrResult
|
||||
|
||||
|
||||
class ContractAttachMgr(FileMgr):
|
||||
@ -28,6 +28,10 @@ class ContractAttachMgr(FileMgr):
|
||||
async def get_organization_quota(self, sor, orgid):
|
||||
"""Unlimited quota for contract attachments."""
|
||||
return 1000000000, '9999-12-31'
|
||||
|
||||
async def file_uploaded(self, request, ns, userid):
|
||||
"""Return success result after file uploaded."""
|
||||
return FileMgrResult('success', 'file added')
|
||||
MODULE_NAME = "supplychain"
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user