From 22831cc8c6173dffdf22bcc42d8a5cb3b61d97a8 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 5 Nov 2008 15:04:04 -0500 Subject: [PATCH] added get_converter to support Carl's importer change --- pyfpdb/Configuration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 01521fb0..bdc5f356 100755 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -480,7 +480,10 @@ class Config: ( 0, 280), (121, 280), ( 46, 30) ) return locations - + def get_converter(self, site): + if not self.supported_sites.has_key(site): + return None + return self.supported_sites[site].converter if __name__== "__main__": c = Config() @@ -528,3 +531,4 @@ if __name__== "__main__": print "paths = ", c.get_default_paths("PokerStars") print "colors = ", c.get_default_colors("PokerStars") print "locs = ", c.get_locations("PokerStars", 8) + print "converter = ", c.get_converter("Everleaf")