Refactored hack

This commit is contained in:
Rudi Grinberg 2012-09-14 14:39:37 -04:00
parent 40bd5a0989
commit d0d9c5ecfc
2 changed files with 5 additions and 10 deletions

View file

@ -343,13 +343,6 @@ def organized_path(old_path, root_path, orig_md):
path = os.path.join(root_path, normal_md['MDATA_KEY_CREATOR'],
normal_md['MDATA_KEY_SOURCE'])
filepath = os.path.join(path, fname)
# nasty hack do this properly
if normal_md['MDATA_KEY_OWNER_ID'] != -1:
p, e = no_extension_basename(filepath), extension(filepath)
filepath = os.path.join( unicode(normal_md['MDATA_KEY_OWNER_ID']),
filepath)
return filepath
# TODO : Get rid of this function and every one of its uses. We no longer use