Skip to content
Snippets Groups Projects
Commit 7395a49e authored by m431m's avatar m431m
Browse files

leave ugly mistake..

parent 142a4987
No related branches found
No related tags found
No related merge requests found
...@@ -637,15 +637,13 @@ class Workspace(Mapfile): ...@@ -637,15 +637,13 @@ class Workspace(Mapfile):
info = self.get_mra_metadata("%ss" % st_type, {})[name].copy() info = self.get_mra_metadata("%ss" % st_type, {})[name].copy()
info["name"] = name info["name"] = name
for v in exclude: if exclude:
path = tuple(k for k in v.split('.')) for v in exclude:
copy = info path = tuple(k for k in v.split('.'))
for m in path[:-1]: copy = info
copy = copy.get(m) for m in path[:-1]:
try: copy = copy.get(m)
del copy[path[-1]] del copy[path[-1]]
except:
pas
return info return info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment