def __init__(self, is_me=True, federated_only=False, network_middleware=None, *args, **kwargs) -> None: policy_agent = kwargs.pop("policy_agent", None) checksum_address = kwargs.pop("checksum_address", None) Character.__init__(self, is_me=is_me, federated_only=federated_only, checksum_address=checksum_address, network_middleware=network_middleware, *args, **kwargs) if is_me and not federated_only: # TODO: 289 PolicyAuthor.__init__(self, policy_agent=policy_agent, checksum_address=checksum_address)
def __init__(self, is_me=True, federated_only=False, network_middleware=None, controller=True, *args, **kwargs) -> None: _policy_agent = kwargs.pop("policy_agent", None) checksum_address = kwargs.pop("checksum_public_address", None) Character.__init__(self, is_me=is_me, federated_only=federated_only, checksum_public_address=checksum_address, network_middleware=network_middleware, *args, **kwargs) if is_me and not federated_only: # TODO: 289 PolicyAuthor.__init__(self, checksum_address=checksum_address) if is_me and controller: self.controller = self._controller_class(alice=self) self.log = Logger(self.__class__.__name__) self.log.info(self.banner)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) PolicyAuthor.__init__(self, address=self.address, *args, **kwargs)