From 3c2fdaf53e6eda4da10ecafda0cf59097449f7ed Mon Sep 17 00:00:00 2001 From: Chaz Littlejohn Date: Tue, 22 Mar 2011 21:31:27 +0000 Subject: [PATCH] Fixed some data-type bugs in the Import class -- essentialy the same commit as 530a21cb9f65f83f8b09ef08f6415c8bd256fccc in the chaz branch of my repo --- pyfpdb/Configuration.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index adf582b2..5186c2df 100644 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -488,16 +488,16 @@ class Popup: class Import: def __init__(self, node): - self.node = node - self.interval = node.getAttribute("interval") - self.callFpdbHud = node.getAttribute("callFpdbHud") - self.ResultsDirectory = node.getAttribute("ResultsDirectory") - self.hhBulkPath = node.getAttribute("hhBulkPath") - self.saveActions = string_to_bool(node.getAttribute("saveActions"), default=False) - self.cacheSessions = string_to_bool(node.getAttribute("cacheSessions"), default=False) - self.sessionTimeout = string_to_bool(node.getAttribute("sessionTimeout"), default=30) - self.fastStoreHudCache = string_to_bool(node.getAttribute("fastStoreHudCache"), default=False) - self.saveStarsHH = string_to_bool(node.getAttribute("saveStarsHH"), default=False) + self.node = node + self.interval = node.getAttribute("interval") + self.sessionTimeout = node.getAttribute("sessionTimeout") + self.ResultsDirectory = node.getAttribute("ResultsDirectory") + self.hhBulkPath = node.getAttribute("hhBulkPath") + self.saveActions = string_to_bool(node.getAttribute("saveActions") , default=False) + self.cacheSessions = string_to_bool(node.getAttribute("cacheSessions") , default=False) + self.callFpdbHud = string_to_bool(node.getAttribute("callFpdbHud") , default=False) + self.fastStoreHudCache = string_to_bool(node.getAttribute("fastStoreHudCache"), default=False) + self.saveStarsHH = string_to_bool(node.getAttribute("saveStarsHH") , default=False) def __str__(self): return " interval = %s\n callFpdbHud = %s\n saveActions = %s\n fastStoreHudCache = %s\nResultsDirectory = %s" \