Changeset 860c360


Ignore:
Timestamp:
Apr 25, 2012 2:21:45 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
bc9ab05
Parents:
aada25c
Message:

Report a correct value for imports. Note that failing to import all
credentials is not necessarily a problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    raada25c r860c360  
    328328        # Now one way or another data_list is ready
    329329        if data_list:
    330             rv = False
     330            rv = []
    331331            attr_list = [ ]
    332332            for d in data_list:
     
    334334                    attr_list.append(d)
    335335                else:
    336                     rv = True
     336                    rv.append(True)
    337337
    338338            for d in attr_list:
    339339                v = self.context.load_attribute_chunk(d)
    340                 if v == ABAC.ABAC_CERT_SUCCESS:
    341                     rv = True
    342             return rv
     340                rv.append(v == ABAC.ABAC_CERT_SUCCESS)
     341            return all(rv)
    343342        else:
    344343            return False
Note: See TracChangeset for help on using the changeset viewer.