diff options
author | Martin Sivak <msivak@redhat.com> | 2012-10-08 18:02:18 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2012-10-08 18:02:18 +0200 |
commit | 3fcfb82d244119d5f1599f077fc18b35291627b5 (patch) | |
tree | ca9a0cebbbcfbeefd7f8ba70855a15feda4f6b07 | |
parent | a04a4a776c3ce666cea88fd9332186330ecf97b1 (diff) | |
download | firstboot2-3fcfb82d244119d5f1599f077fc18b35291627b5.tar.gz firstboot2-3fcfb82d244119d5f1599f077fc18b35291627b5.tar.xz firstboot2-3fcfb82d244119d5f1599f077fc18b35291627b5.zip |
Mock the data structure for Password spoke
-rw-r--r-- | firstboot/gui/__main__.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/firstboot/gui/__main__.py b/firstboot/gui/__main__.py index 0c5c491..293c9ac 100644 --- a/firstboot/gui/__main__.py +++ b/firstboot/gui/__main__.py @@ -6,12 +6,27 @@ import os import gi.overrides for p in os.environ.get("ANACONDA_WIDGETS_OVERRIDES", "").split(":"): gi.overrides.__path__.insert(0, p) - + +# Too bad anaconda does not have modularized logging +from pyanaconda import anaconda_log +anaconda_log.init() + class O(object): pass g = gui.FirstbootGraphicalUserInterface(None, None, None) -data = O() + +class O(object): + def __init__(self, d): + self.__dict__ = d + +data = O({ + "rootpw": O({ + "lock": False, + + }) + }) + g.setup(data) g.run() |