def __init__(self): FilteringProtocol.__init__(self) # The list of clients is maintained as a stack because disconnections # automatically designate the next one in the list as the active. # However, queries can be received from clients in any order. When a # frontend recieves a query, it will call this instance back so that # we know to send it the reply. self.clientStack = [] # The first set of authentication response messages (between the # AuthenticationOk/R and the ReadyForQuery/Z) are saved here. self.authenticationResponse = []
def __init__(self): FilteringProtocol.__init__(self) self.postgresProtocol = None