From 17a1151954b81e8fcd002da4d1af9b1a5595d705 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Fri, 6 Nov 2009 09:56:45 +0200 Subject: [PATCH 1/2] Update debian packaging The new table code is saner, cleaner and altogether nicer than the old one. On linux, the routines finally use Xlib directly. Depend on python-xlib bindings so we can use them. --- packaging/debian/control | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/debian/control b/packaging/debian/control index 784c4b40..c510e1c8 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -10,7 +10,8 @@ Architecture: all Section: games Priority: extra Depends: ${python:Depends}, python-gtk2, python-matplotlib, - python-support, mysql-server | postgresql | python-pysqlite2, + python-support, python-xlib, + mysql-server | postgresql | python-pysqlite2, python-psycopg2 | python-mysqldb Suggests: wine Description: free poker database with HUD From 615d1ea8a631869336cc8db9d5d404f614822a90 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Fri, 20 Nov 2009 08:48:49 +0200 Subject: [PATCH 2/2] Add default style keys It seems there is some weird way for stylekeys to remain unset. Catch the special case and have a way to see why this happens. --- pyfpdb/Database.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 07b7a4d4..84c2d7a7 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -454,6 +454,10 @@ class Database: stylekey = '0000000' # all stylekey values should be higher than this elif hud_style == 'S': stylekey = 'zzzzzzz' # all stylekey values should be lower than this + else: + stylekey = '0000000' + log.info('hud_style: %s' % hud_style) + #elif hud_style == 'H': # stylekey = date_nhands_ago needs array by player here ... @@ -463,6 +467,10 @@ class Database: h_stylekey = '0000000' # all stylekey values should be higher than this elif h_hud_style == 'S': h_stylekey = 'zzzzzzz' # all stylekey values should be lower than this + else: + h_stylekey = '000000' + log.info('h_hud_style: %s' % h_hud_style) + #elif h_hud_style == 'H': # h_stylekey = date_nhands_ago needs array by player here ...