sharing: minor fixes
This commit is contained in:
@@ -347,8 +347,9 @@ def xml_propfind_response(
|
|||||||
if tag_text is not None:
|
if tag_text is not None:
|
||||||
if sharing:
|
if sharing:
|
||||||
# map from overlay
|
# map from overlay
|
||||||
if sharing['Properties'][human_tag] is not None:
|
if human_tag in sharing['Properties']:
|
||||||
tag_text = sharing['Properties'][human_tag]
|
if sharing['Properties'][human_tag] is not None:
|
||||||
|
tag_text = sharing['Properties'][human_tag]
|
||||||
element.text = tag_text
|
element.text = tag_text
|
||||||
else:
|
else:
|
||||||
is404 = True
|
is404 = True
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ class Sharing(sharing.BaseSharing):
|
|||||||
Properties = row['Properties']
|
Properties = row['Properties']
|
||||||
return {
|
return {
|
||||||
"mapped": True,
|
"mapped": True,
|
||||||
|
"ShareType": ShareType,
|
||||||
"PathOrToken": PathOrToken,
|
"PathOrToken": PathOrToken,
|
||||||
"PathMapped": PathMapped,
|
"PathMapped": PathMapped,
|
||||||
"Owner": Owner,
|
"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)
|
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 {
|
return {
|
||||||
"mapped": True,
|
"mapped": True,
|
||||||
|
"ShareType": ShareType,
|
||||||
"PathOrToken": PathOrToken,
|
"PathOrToken": PathOrToken,
|
||||||
"PathMapped": PathMapped,
|
"PathMapped": PathMapped,
|
||||||
"Owner": Owner,
|
"Owner": Owner,
|
||||||
|
|||||||
Reference in New Issue
Block a user