address_label #3
1 changed files with 7 additions and 7 deletions
|
@ -55,7 +55,7 @@ class FormApp(npyscreen.NPSAppManaged):
|
|||
value=fin['reference'])
|
||||
finance_widgets['scan-sepa-mandate'] = f.add(npyscreen.TitleText, name="URI Scan SEPA-Mandat: ",
|
||||
value=fin['scan-sepa-mandate'])
|
||||
sefl.finance_widgets = finance_widgets
|
||||
self.finance_widgets = finance_widgets
|
||||
|
||||
mem = self.member['mitgliederdaten']
|
||||
member_widgets = {}
|
||||
|
@ -86,15 +86,15 @@ def main(*_args):
|
|||
|
||||
new_data = {}
|
||||
new_data['stammdaten'] = dict(
|
||||
zip(app.sd2.keys(), map(lambda f: f.value, app.base_data_widgets.values())))
|
||||
zip(app.base_data_widgets.keys(), map(lambda f: f.value, app.base_data_widgets.values())))
|
||||
new_data['finanzdaten'] = dict(
|
||||
zip(app.fin2.keys(), map(lambda f: f.value, app.finance_widgets.values())))
|
||||
zip(app.finance_widgets.keys(), map(lambda f: f.value, app.finance_widgets.values())))
|
||||
new_data['mitgliederdaten'] = dict(
|
||||
zip(app.mem2.keys(), map(lambda f: f.value, app.member_widgets.values())))
|
||||
zip(app.member_widgets.keys(), map(lambda f: f.value, app.member_widgets.values())))
|
||||
new_data['stammdaten']['address_label'] = \
|
||||
f"{new_data['stammdaten']['fullname']}\n \
|
||||
{new_data['stammdaten']['address_street']}\n \
|
||||
{new_data['stammdaten']['address_code']} {new_data['stammdaten']["address_locality"]}"
|
||||
f"{new_data['stammdaten']['fullname']}\n\
|
||||
{new_data['stammdaten']['address_street']}\n\
|
||||
{new_data['stammdaten']['address_code']} {new_data['stammdaten']['address_locality']}"
|
||||
|
||||
outfile_name = '{}_{}.json'.format(date.today().isoformat(
|
||||
), '_'.join(new_data['stammdaten']['fullname'].split()))
|
||||
|
|
Loading…
Reference in a new issue