def __call__(self, fCallback):
        cid_key = self.cid_key
        def exist_connector_and_call(self, *args, **kwargs):
            opts = args[1]
            cid = getattr(opts, cid_key)

            if self.pb['smppcm'].getConnector(cid) is not None:
                return fCallback(self, *args, **kwargs)

            return self.protocol.sendData('Unknown connector: %s' % cid)
        return exist_connector_and_call
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/smppccm.py/ConnectorExist.__call__/original