def __init__(self, url=None, **options): if url: args = [url] else: args = [] if options : if "sasl_mechanisms" in options : if ' ' in options.get("sasl_mechanisms",'') : raise Exception( "C++ Connection objects are unable to handle " "multiple sasl-mechanisms") options["sasl_mechanism"] = options.pop("sasl_mechanisms") args.append(options) this = _cqpid.new_Connection(*args) try: self.this.append(this) except: self.this = this
def __init__(self, url=None, **options): if url: args = [url] else: args = [] if options: if "sasl_mechanisms" in options: if ' ' in options.get("sasl_mechanisms", ''): raise Exception( "C++ Connection objects are unable to handle " "multiple sasl-mechanisms") options["sasl_mechanism"] = options.pop("sasl_mechanisms") args.append(options) this = _cqpid.new_Connection(*args) try: self.this.append(this) except: self.this = this
def __init__(self, *args): this = _cqpid.new_Connection(*args) try: self.this.append(this) except: self.this = this