xmrwallet: addr_w -> addr_col_w
This commit is contained in:
parent
d6975cac62
commit
6d98620bfb
2 changed files with 6 additions and 5 deletions
|
|
@ -83,7 +83,7 @@ class MoneroMMGenTX:
|
|||
def src_wallet_idx(self):
|
||||
return int(self.data.source.split(':')[0])
|
||||
|
||||
def get_info_oneline(self, *, indent='', addr_w=None):
|
||||
def get_info_oneline(self, *, indent='', addr_col_w=None):
|
||||
d = self.data
|
||||
return self.oneline_fs.format(
|
||||
a = yellow(d.network),
|
||||
|
|
@ -95,10 +95,11 @@ class MoneroMMGenTX:
|
|||
g = red('{}:{}'.format(d.dest.wallet, d.dest.account).ljust(6))
|
||||
if d.dest else cyan('ext '),
|
||||
h = d.amount.fmt(4, color=True, prec=12),
|
||||
j = d.dest_address.fmt(0, addr_w, color=True) if addr_w else d.dest_address.hl(0),
|
||||
j = d.dest_address.fmt(0, addr_col_w, color=True) if addr_col_w else
|
||||
d.dest_address.hl(0),
|
||||
x = '->')
|
||||
|
||||
def get_info(self, *, indent='', addr_w=None, full_address=False):
|
||||
def get_info(self, *, indent='', addr_col_w=None, full_address=False):
|
||||
d = self.data
|
||||
pmt_id = d.dest_address.parsed.payment_id
|
||||
fs = '\n'.join(list_gen(
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@ class OpTxview(OpBase):
|
|||
if self.cfg.autosign:
|
||||
self.asi.do_umount()
|
||||
|
||||
addr_w = None if self.cfg.full_address or cols is None else cols - self.fixed_cols_w
|
||||
addr_col_w = None if self.cfg.full_address or cols is None else cols - self.fixed_cols_w
|
||||
|
||||
self.cfg._util.stdout_or_pager(
|
||||
(self.hdr if len(files) > 1 else '')
|
||||
+ self.col_hdr
|
||||
+ '\n'.join(getattr(tx, self.view_method)(addr_w=addr_w) for tx in txs)
|
||||
+ '\n'.join(getattr(tx, self.view_method)(addr_col_w=addr_col_w) for tx in txs)
|
||||
+ self.footer)
|
||||
|
||||
class OpTxlist(OpTxview):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue