sharing: minor fixes
This commit is contained in:
@@ -347,8 +347,9 @@ def xml_propfind_response(
|
||||
if tag_text is not None:
|
||||
if sharing:
|
||||
# map from overlay
|
||||
if sharing['Properties'][human_tag] is not None:
|
||||
tag_text = sharing['Properties'][human_tag]
|
||||
if human_tag in sharing['Properties']:
|
||||
if sharing['Properties'][human_tag] is not None:
|
||||
tag_text = sharing['Properties'][human_tag]
|
||||
element.text = tag_text
|
||||
else:
|
||||
is404 = True
|
||||
|
||||
@@ -135,6 +135,7 @@ class Sharing(sharing.BaseSharing):
|
||||
Properties = row['Properties']
|
||||
return {
|
||||
"mapped": True,
|
||||
"ShareType": ShareType,
|
||||
"PathOrToken": PathOrToken,
|
||||
"PathMapped": PathMapped,
|
||||
"Owner": Owner,
|
||||
|
||||
@@ -129,6 +129,7 @@ class Sharing(sharing.BaseSharing):
|
||||
logger.debug("TRACE/sharing: map %r to %r (Owner=%r User=%r Permissions=%r Hidden=%s Properties=%r)", PathOrToken, PathMapped, Owner, UserShare, Permissions, Hidden, Properties)
|
||||
return {
|
||||
"mapped": True,
|
||||
"ShareType": ShareType,
|
||||
"PathOrToken": PathOrToken,
|
||||
"PathMapped": PathMapped,
|
||||
"Owner": Owner,
|
||||
|
||||
Reference in New Issue
Block a user