def info(account_object): msg = manager.accout_names_2_object_names( "Account object name: {}\n{}".format( account_object_name, str(cleos.GetAccount(account_object.name, is_verbose=0))), True) print(msg)
def info(self): stop_if_account_is_not_set(self) msg = manager.accout_names_2_object_names( "Account object name: {}\n{}".format( self.account_object_name, str(cleos.GetAccount(self.name, is_verbose=0))), True) # restore the physical account name msg = re.sub(r"(?<=^name: )\w+", self.name, msg, flags=re.M) print(msg)
def condition(message, translate=True): import eosfactory.core.manager as manager ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]') message = ansi_escape.sub('', message) message = dedent(message).strip() message.replace("<br>", "\n") if translate: message = manager.accout_names_2_object_names(message) return message
def info(self): msg = manager.accout_names_2_object_names( "account object name: {}\nname: {}\n{}".format( self.account_object_name, self.name, cleos.GetAccount(self.name, is_verbose=False).out_msg), True) print(msg)