Skip to content

Commit

Permalink
Removed obsolete doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed May 3, 2022
1 parent 0e16e20 commit 03b6395
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/core/wopi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

def checkFileInfo(fileid):
'''Implements the CheckFileInfo WOPI call'''
'''cf. http://wopi.readthedocs.io/projects/wopirest/en/latest/files/CheckFileInfo.html'''
srv.refreshconfig()
try:
acctok = jwt.decode(flask.request.args['access_token'], srv.wopisecret, algorithms=['HS256'])
Expand Down Expand Up @@ -153,7 +152,6 @@ def getFile(fileid):
#
def setLock(fileid, reqheaders, acctok):
'''Implements the Lock, RefreshLock, and UnlockAndRelock WOPI calls'''
# cf. http://wopi.readthedocs.io/projects/wopirest/en/latest/files/Lock.html
op = reqheaders['X-WOPI-Override']
lock = reqheaders['X-WOPI-Lock']
oldLock = reqheaders.get('X-WOPI-OldLock')
Expand Down Expand Up @@ -252,7 +250,6 @@ def unlock(fileid, reqheaders, acctok):

def putRelative(fileid, reqheaders, acctok):
'''Implements the PutRelative WOPI call. Corresponds to the 'Save as...' menu entry.'''
# cf. http://wopi.readthedocs.io/projects/wopirest/en/latest/files/PutRelativeFile.html
suggTarget = reqheaders.get('X-WOPI-SuggestedTarget')
relTarget = reqheaders.get('X-WOPI-RelativeTarget')
overwriteTarget = bool(reqheaders.get('X-WOPI-OverwriteRelativeTarget'))
Expand Down
2 changes: 1 addition & 1 deletion src/wopiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def wopiFilesPost(fileid):
return core.wopi.deleteFile(fileid, headers, acctok)
if op == 'RENAME_FILE':
return core.wopi.renameFile(fileid, headers, acctok)
# elif op == 'PUT_USER_INFO': https://wopirest.readthedocs.io/en/latest/files/PutUserInfo.html
# elif op == 'PUT_USER_INFO':
# Any other op is unsupported
Wopi.log.warning('msg="Unknown/unsupported operation" operation="%s"' % op)
return 'Not supported operation found in header', http.client.NOT_IMPLEMENTED
Expand Down

0 comments on commit 03b6395

Please sign in to comment.