nickname (optional): The contents of this file will be displayed in
management tools as this node's "nickname". If the file doesn't exist, the
-nickname will be set to "<unspecified>".
+nickname will be set to "<unspecified>". This file shall be a UTF-8 encoded
+unicode string.
webport (optional): This controls where the client's webserver should listen,
providing filesystem access as defined in webapi.txt . This file contains a
node.Node.__init__(self, basedir)
self.started_timestamp = time.time()
self.logSource="Client"
- self.nickname = self.get_config("nickname")
- if self.nickname is None:
- self.nickname = "<unspecified>"
+ nickname_utf8 = self.get_config("nickname")
+ if nickname_utf8:
+ self.nickname = nickname_utf8.decode("utf-8")
+ else:
+ self.nickname = u"<unspecified>"
self.init_introducer_client()
self.init_stats_provider()
self.init_lease_secret()
self._tub = tub
self.introducer_furl = introducer_furl
- self._nickname = nickname
+ self._nickname = nickname.encode("utf-8")
self._my_version = my_version
self._oldest_supported = oldest_supported