|
@@ -504,7 +504,7 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
|
|
|
|
def remoteDirExists(self,url):
|
|
|
#weaker, just checks if there is an entry at url, does not check wheter it is a dir
|
|
|
- return self.entryEists(url)
|
|
|
+ return self.entryExists(url)
|
|
|
#stronger, but more complicated
|
|
|
return self.isRemoteDir(url)
|
|
|
|
|
@@ -553,12 +553,13 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
|
<a:resourcetype/>\n
|
|
|
</a:prop>\n
|
|
|
</a:propfind>"""
|
|
|
- if not labkeyURIHandler.HTTPStatus(self.propfind(remotePath,PROPFIND),method='propfind'):
|
|
|
+ response=self.propfind(remotePath,PROPFIND)
|
|
|
+ if not labkeyURIHandler.HTTPStatus(response,method='propfind'):
|
|
|
print("Bad status")
|
|
|
return False
|
|
|
|
|
|
try:
|
|
|
- tree=ET.XML(f.data)
|
|
|
+ tree=ET.XML(response.data)
|
|
|
except ET.ParseError:
|
|
|
#print(f.data.decode('utf-8'))
|
|
|
#if directory is not there, a 404 response will be made by HTTP, which is not an xml file
|