summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-09 19:06:44 -0400
committerKali Kaneko <kali@leap.se>2014-01-09 19:06:44 -0400
commitcbdda58f1e5f74f37489f3b4b67616bd19d6715d (patch)
tree199d61155e8b5b7af2cf654011165243779035af /src/leap
parent2bd96c2f0a3c5b6d4a80fe450dfe84bf524ca722 (diff)
add offline flag
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/app.py5
-rw-r--r--src/leap/bitmask/config/flags.py4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index d50743d6..e8423fd5 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# app.py
-# Copyright (C) 2013 LEAP
+# Copyright (C) 2013, 2014 LEAP
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -168,6 +168,7 @@ def main():
"""
Starts the main event loop and launches the main window.
"""
+ # TODO move boilerplate outa here!
_, opts = leap_argparse.init_leapc_args()
if opts.version:
@@ -180,6 +181,7 @@ def main():
sys.exit(0)
standalone = opts.standalone
+ offline = opts.offline
bypass_checks = getattr(opts, 'danger', False)
debug = opts.debug
logfile = opts.log_file
@@ -199,6 +201,7 @@ def main():
from leap.bitmask.config import flags
from leap.common.config.baseconfig import BaseConfig
flags.STANDALONE = standalone
+ flags.OFFLINE = offline
flags.MAIL_LOGFILE = mail_logfile
flags.APP_VERSION_CHECK = opts.app_version_check
flags.API_VERSION_CHECK = opts.api_version_check
diff --git a/src/leap/bitmask/config/flags.py b/src/leap/bitmask/config/flags.py
index b1576c32..82501fb2 100644
--- a/src/leap/bitmask/config/flags.py
+++ b/src/leap/bitmask/config/flags.py
@@ -41,3 +41,7 @@ MAIL_LOGFILE = None
# since it's not released yet, and it is compatible with a newer provider.
APP_VERSION_CHECK = True
API_VERSION_CHECK = True
+
+# Offline mode?
+# Used for skipping soledad bootstrapping/syncs.
+OFFLINE = False