Revision e161c24f snf-pithos-backend/pithos/backends/modular.py
b/snf-pithos-backend/pithos/backends/modular.py | ||
---|---|---|
884 | 884 |
user) |
885 | 885 |
#group_parents = access_objects['group_parents'] |
886 | 886 |
nobject_permissions = {} |
887 |
cpath = '/'.join((account, container, '')) |
|
888 |
cpath_idx = len(cpath) |
|
887 | 889 |
for path in permissions_path: |
888 | 890 |
allowed = 1 |
889 |
name = path.split('/')[-1]
|
|
891 |
name = path[cpath_idx:]
|
|
890 | 892 |
if user != account: |
891 | 893 |
try: |
892 | 894 |
allowed = access_objects[path] |
... | ... | |
1723 | 1725 |
for prop in props: |
1724 | 1726 |
if prop[1].split(';', 1)[0].strip() in ( |
1725 | 1727 |
'application/directory', 'application/folder'): |
1726 |
permission_paths_list.append(( |
|
1727 |
prop[0].rstrip('/') + '/', self.MATCH_PREFIX)) |
|
1728 |
permission_paths_list.append(prop[0]) |
|
1728 | 1729 |
|
1729 | 1730 |
if len(permission_paths_list) > 0: |
1730 | 1731 |
return permission_paths_list |
Also available in: Unified diff