Merge pull request #24 from petterreinholdtsen/first-boot-no-dead-end

Provide a way to get out of the first-boot screen, even if it isn't read...
This commit is contained in:
Nick Daly 2013-09-15 17:48:30 -07:00
commit 5002715cb6

View File

@ -101,6 +101,15 @@ TODO: explain all this cert stuff to the user.</p>
<p>TODO: add instrux for installing certificate.</p>
<p>After you have installed
"""
# TODO complete first_boot handling
# Make sure the user is not stuck on a dead end for now.
with sqlite_db(cfg.store_file, table="firstboot", autocommit=True) as db:
db['state']=5
main = main + """
<p>Welcome screen not completely implemented yet. Press <a href="/router">continue</a> to
see the rest of the web interface.</p>"
"""
if False:
## Update state to 2 and head there
with sqlite_db(cfg.store_file, table="firstboot", autocommit=True) as db: