Changeset d90f0fa


Ignore:
Timestamp:
Nov 24, 2008 2:17:29 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
516b7cc
Parents:
34bc05c
Message:

Bug checking multiple access requests. The code didn't notice when a request
succeeded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_experiment_control.py

    r34bc05c rd90f0fa  
    938938
    939939        for p, u in access_user:
     940            self.log.debug(("[get_access] Attempting access from (%s, %s) " + \
     941                    "to %s") %  ((p or "None"), u, uri))
    940942
    941943            if p:
     
    985987            except service_error, e:
    986988                if e.code == service_error.access:
     989                    self.log.debug("[get_access] Access denied")
    987990                    r = None
    988991                    continue
     
    991994
    992995            if r.has_key('RequestAccessResponseBody'):
     996                # Through to here we have a valid response, not a fault.
     997                # Access denied is a fault, so something better or worse than
     998                # access denied has happened.
    993999                r = r['RequestAccessResponseBody']
     1000                self.log.debug("[get_access] Access granted")
     1001                break
    9941002            else:
    9951003                raise service_error(service_error.protocol,
Note: See TracChangeset for help on using the changeset viewer.