Changeset c573278 for fedd/federation/util.py
- Timestamp:
- Nov 24, 2010 3:45:50 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 725c55d
- Parents:
- de7cb08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/util.py
rde7cb08 rc573278 351 351 return rkeyfile, rcertfile 352 352 353 def abac_context_to_creds(context): 354 """ 355 Pull all the credentials out of the context and return 2 lists of the 356 underlying credentials in an exportable format, IDs and attributes. 357 There are no duplicates in the lists. 358 """ 359 ids, attrs = set(), set() 360 # This should be a one-iteration loop 361 for c in context.credentials(): 362 ids.add(c.issuer_cert()) 363 attrs.add(c.attribute_cert()) 364 365 return list(ids), list(attrs) 366 353 367 def find_pickle_problem(o, st=None): 354 368 """
Note: See TracChangeset
for help on using the changeset viewer.