mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
Clean up optional (unused) wopi checkFileInfo options
This commit is contained in:
parent
3b68f6895a
commit
f1fe9c6452
|
|
@ -1567,25 +1567,12 @@ class HttpCli(object):
|
||||||
"UserId": self.uname,
|
"UserId": self.uname,
|
||||||
"UserFriendlyName": self.uname,
|
"UserFriendlyName": self.uname,
|
||||||
"UserCanWrite": True,
|
"UserCanWrite": True,
|
||||||
# "UserCanNotWriteRelative": False,
|
"UserCanNotWriteRelative": True,
|
||||||
# "PostMessageOrigin": ,
|
|
||||||
# "HidePrintOption": ,
|
|
||||||
# "DisablePrint": ,
|
|
||||||
# "HideSaveOption": ,
|
|
||||||
# "HideExportOption": ,
|
|
||||||
# "HideRepairOption": ,
|
|
||||||
# "DisableExport": ,
|
|
||||||
# "DisableCopy": ,
|
|
||||||
# "EnableOwnerTermination": True,
|
|
||||||
"LastModifiedTime":
|
"LastModifiedTime":
|
||||||
time.strftime(
|
time.strftime(
|
||||||
"%Y-%m-%dT%H:%M:%SZ",
|
"%Y-%m-%dT%H:%M:%SZ",
|
||||||
time.gmtime(os.path.getmtime(full_path))
|
time.gmtime(os.path.getmtime(full_path))
|
||||||
),
|
),
|
||||||
# "IsUserLocked": ,
|
|
||||||
# "IsUserRestricted": ,
|
|
||||||
# "SupportsRename": True,
|
|
||||||
# "UserCanRename": True,
|
|
||||||
}
|
}
|
||||||
ret = json.dumps(file_info).encode("utf-8", "replace")
|
ret = json.dumps(file_info).encode("utf-8", "replace")
|
||||||
self.reply(ret, 200, "application/json; charset=utf-8")
|
self.reply(ret, 200, "application/json; charset=utf-8")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue