git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add an optional 'options' dict to Resolve (checked that old clients
[sfa.git]
/
sfa
/
storage
/
model.py
diff --git
a/sfa/storage/model.py
b/sfa/storage/model.py
index
05046d0
..
a2fae0e
100644
(file)
--- a/
sfa/storage/model.py
+++ b/
sfa/storage/model.py
@@
-374,7
+374,10
@@
augment_map={'authority': {'reg-pis':'reg_pis',},
'reg-slices':'reg_slices_as_researcher',},
}
'reg-slices':'reg_slices_as_researcher',},
}
-def augment_with_related_hrns (local_record):
+def augment_with_urn_and_related_hrns (local_record):
+ # don't ruin the import of that file in a client world
+ from sfa.util.xrn import Xrn
+ local_record.urn=Xrn(xrn=local_record.hrn,type=local_record.type).urn
# search in map according to record type
type_map=augment_map.get(local_record.type,{})
# use type-dep. map to do the job
# search in map according to record type
type_map=augment_map.get(local_record.type,{})
# use type-dep. map to do the job