If a helper is not configured, make the banner on the welcome page say that, and have a white background.

fixes #1735

Author: kick
Signed-off-by: David-Sarah Hopwood <davidsarah@jacaranda.org>
This commit is contained in:
David-Sarah Hopwood
2012-12-29 04:17:00 +00:00
parent eba64f2aba
commit a5895b9d59
6 changed files with 71 additions and 4 deletions

View File

@ -306,6 +306,9 @@ class Client(node.Node, pollmixin.PollMixin):
def init_client(self):
helper_furl = self.get_config("client", "helper.furl", None)
if helper_furl in ("None", ""):
helper_furl = None
DEP = self.DEFAULT_ENCODING_PARAMETERS
DEP["k"] = int(self.get_config("client", "shares.needed", DEP["k"]))
DEP["n"] = int(self.get_config("client", "shares.total", DEP["n"]))