|
|
|
@ -485,7 +485,6 @@ class Import:
|
|
|
|
|
self.node = node |
|
|
|
|
self.interval = node.getAttribute("interval") |
|
|
|
|
self.callFpdbHud = node.getAttribute("callFpdbHud") |
|
|
|
|
self.hhArchiveBase = node.getAttribute("hhArchiveBase") |
|
|
|
|
self.ResultsDirectory = node.getAttribute("ResultsDirectory") |
|
|
|
|
self.hhBulkPath = node.getAttribute("hhBulkPath") |
|
|
|
|
self.saveActions = string_to_bool(node.getAttribute("saveActions"), default=False) |
|
|
|
@ -495,8 +494,8 @@ class Import:
|
|
|
|
|
self.saveStarsHH = string_to_bool(node.getAttribute("saveStarsHH"), default=False) |
|
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
|
|
return " interval = %s\n callFpdbHud = %s\n hhArchiveBase = %s\n saveActions = %s\n fastStoreHudCache = %s\nResultsDirectory = %s" \ |
|
|
|
|
% (self.interval, self.callFpdbHud, self.hhArchiveBase, self.saveActions, self.cacheSessions, self.sessionTimeout, self.fastStoreHudCache, self.ResultsDirectory) |
|
|
|
|
return " interval = %s\n callFpdbHud = %s\n saveActions = %s\n fastStoreHudCache = %s\nResultsDirectory = %s" \ |
|
|
|
|
% (self.interval, self.callFpdbHud, self.saveActions, self.cacheSessions, self.sessionTimeout, self.fastStoreHudCache, self.ResultsDirectory) |
|
|
|
|
|
|
|
|
|
class HudUI: |
|
|
|
|
def __init__(self, node): |
|
|
|
@ -861,9 +860,6 @@ class Config:
|
|
|
|
|
|
|
|
|
|
return nodes_added |
|
|
|
|
|
|
|
|
|
def set_hhArchiveBase(self, path): |
|
|
|
|
self.imp.node.setAttribute("hhArchiveBase", path) |
|
|
|
|
|
|
|
|
|
def find_default_conf(self): |
|
|
|
|
if os.name == 'posix': |
|
|
|
|
config_path = os.path.join(os.path.expanduser("~"), '.fpdb', 'default.conf') |
|
|
|
@ -1261,10 +1257,6 @@ class Config:
|
|
|
|
|
try: imp['interval'] = self.imp.interval |
|
|
|
|
except: imp['interval'] = 10 |
|
|
|
|
|
|
|
|
|
# hhArchiveBase is the temp store for part-processed hand histories - should be redundant eventually |
|
|
|
|
try: imp['hhArchiveBase'] = self.imp.hhArchiveBase |
|
|
|
|
except: imp['hhArchiveBase'] = "~/.fpdb/HandHistories/" |
|
|
|
|
|
|
|
|
|
# ResultsDirectory is the local cache for downloaded results |
|
|
|
|
# NOTE: try: except: doesn'tseem to be triggering |
|
|
|
|
# using if instead |
|
|
|
|