Ignore:
Timestamp:
Nov 29, 2010 6:13:12 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
027b87b
Parents:
c573278
Message:

Checkpoint - successful swap in and out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    rc573278 r725c55d  
    248248    def import_credential(self, file=None, data=None):
    249249        if data:
    250             rv = self.context.load_id_chunk(data)
    251             print "id %d" % rv
    252             if rv == ABAC.ABAC_CERT_SUCCESS: return True
    253             rv = self.context.load_attribute_chunk(data)
    254             print "attr %d" % rv
    255             return rv == ABAC.ABAC_CERT_SUCCESS
    256             #if self.context.load_id_chunk(data) != ABAC.ABAC_CERT_SUCCESS:
    257         #       return self.context.load_attribute_chunk(data) == \
    258         #               ABAC.ABAC_CERT_SUCCESS
    259             ##else:
    260         #       return True
     250            if self.context.load_id_chunk(data) != ABAC.ABAC_CERT_SUCCESS:
     251                return self.context.load_attribute_chunk(data) == \
     252                        ABAC.ABAC_CERT_SUCCESS
     253            else:
     254                return True
    261255        elif file:
    262256            if self.context.load_id_file(file) != ABAC.ABAC_CERT_SUCCESS:
Note: See TracChangeset for help on using the changeset viewer.