git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ee1ac6
)
fix typos
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 6 May 2010 14:57:07 +0000
(14:57 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 6 May 2010 14:57:07 +0000
(14:57 +0000)
sfa/server/sfa-ca.py
patch
|
blob
|
history
diff --git
a/sfa/server/sfa-ca.py
b/sfa/server/sfa-ca.py
index
f760464
..
aac0208
100755
(executable)
--- a/
sfa/server/sfa-ca.py
+++ b/
sfa/server/sfa-ca.py
@@
-181,7
+181,7
@@
def import_gid(options):
record_dict = defaultdict(list)
# only get regords that belong to this authority
# or any of its sub authorities
record_dict = defaultdict(list)
# only get regords that belong to this authority
# or any of its sub authorities
- all_records = table.find({'hrn': '%s*' % gid.get_hrn()
]
)
+ all_records = table.find({'hrn': '%s*' % gid.get_hrn()
}
)
for record in records:
record_dict[record['authority']].append(record)
for record in records:
record_dict[record['authority']].append(record)
@@
-209,7
+209,7
@@
def import_gid(options):
# update list of next authorities
tmp_authorities = set([record['hrn'] for record in records \
# update list of next authorities
tmp_authorities = set([record['hrn'] for record in records \
- if record['type'] == 'authority'])
)
+ if record['type'] == 'authority'])
next_authorities.extend(tmp_authorities)
# move on to next set of authorities
next_authorities.extend(tmp_authorities)
# move on to next set of authorities