def unbindAndRemoveGateway(self, user, ban=True):
        if ban:
            user.smpps_credential.setAuthorization('bind', False)

        d = self.unbindGateway(user.username)
        return d
Overloading _SMPPServerFactory to remove dependency with config.systems
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/factory.py/SMPPServerFactory.unbindAndRemoveGateway