address_label #3

Merged
tux merged 6 commits from address_label into master 2020-03-14 22:08:20 +01:00
Showing only changes of commit bce23cb45c - Show all commits

View file

@ -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()))