From 71275bf3bae65e5f702be584915a44095cbe5a09 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 16 Dec 2018 08:38:03 +0100 Subject: Clean helpers.py --- qml/helpers.py | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'qml/helpers.py') diff --git a/qml/helpers.py b/qml/helpers.py index 773070d..52e9660 100644 --- a/qml/helpers.py +++ b/qml/helpers.py @@ -7,9 +7,6 @@ import rpm gettext.install("mageiawelcome") -install = _("Install") -launch = _("Launch") - ts = rpm.TransactionSet() def get_desktop_name(x): @@ -51,33 +48,3 @@ def is_installed(name): else: repo = '' return release != "", repo - - -def get_listapp(): - listapp = '' - with open("apps.csv", 'rt') as f: - mycsv = csv.reader(f,delimiter='|') - next(mycsv) - for r in mycsv: - if (r[5] == 'false'): - start_btn = "" - else: - start_btn = "" - if (r[6] != ''): - label = "" + r[6] + "" - title = " title='{}'".format(_("Need {} repository enabled").format(r[6])) - else: - label = "" - title = "" - is_app_installed, repo = is_installed(r[1]) - if ( not is_app_installed or repo != r[6]):# NOT INSTALLED IN EXPECTED RELEASE - if is_app_installed and r[6] == "": # ANOTHER RELEASE THAN CORE IS INSTALLED - listapp += "
  • \ -
    " + r[2] + "

    " + r[4] + "

    " + label - else: - listapp += "
  • \ -
    " + r[2] + "

    " + r[4] + "

    " + label + "
  • " - else: # INSTALLED - listapp += "
  • \ -
    " + r[2] + "

    " + r[4] + "

    " + start_btn + label + "
  • " - return listapp -- cgit v1.2.1