fixed zeo behavior in user manager
This commit is contained in:
@@ -37,8 +37,7 @@ def open_database(db_arg: str) -> ZODB.DB:
|
|||||||
port = int(port_str)
|
port = int(port_str)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ValueError(f"Invalid port in ZEO address: {db_arg}")
|
raise ValueError(f"Invalid port in ZEO address: {db_arg}")
|
||||||
storage = ZEO.client_storage(host, port)
|
return ZEO.DB((host,port))
|
||||||
return ZODB.DB(storage)
|
|
||||||
else:
|
else:
|
||||||
# Local FileStorage path
|
# Local FileStorage path
|
||||||
storage = ZODB.FileStorage.FileStorage(db_arg)
|
storage = ZODB.FileStorage.FileStorage(db_arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user