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
sfa-import-plc.py is not longer responsible for creating the top level authority...
[sfa.git]
/
sfa
/
importer
/
sfaImport.py
diff --git
a/sfa/importer/sfaImport.py
b/sfa/importer/sfaImport.py
index
4de6e1b
..
4c5b5c7
100644
(file)
--- a/
sfa/importer/sfaImport.py
+++ b/
sfa/importer/sfaImport.py
@@
-66,9
+66,8
@@
class sfaImport:
def create_top_level_auth_records(self, hrn):
"""
def create_top_level_auth_records(self, hrn):
"""
- Create top level records (includes root and sub authorities (local/remote)
+ Create top level
db
records (includes root and sub authorities (local/remote)
"""
"""
- urn = hrn_to_urn(hrn, 'authority')
# make sure parent exists
parent_hrn = get_authority(hrn)
if not parent_hrn:
# make sure parent exists
parent_hrn = get_authority(hrn)
if not parent_hrn:
@@
-76,11
+75,6
@@
class sfaImport:
if not parent_hrn == hrn:
self.create_top_level_auth_records(parent_hrn)
if not parent_hrn == hrn:
self.create_top_level_auth_records(parent_hrn)
- # create the authority if it doesnt already exist
- if not self.AuthHierarchy.auth_exists(urn):
- self.logger.info("Import: creating top level authorities")
- self.AuthHierarchy.create_auth(urn)
-
# create the db record if it doesnt already exist
auth_info = self.AuthHierarchy.get_auth_info(hrn)
table = SfaTable()
# create the db record if it doesnt already exist
auth_info = self.AuthHierarchy.get_auth_info(hrn)
table = SfaTable()