Commit Graph

2532 Commits

Author SHA1 Message Date
sqlcoder
8221e86757 turn off hud seats restriction as default 2009-11-29 18:14:04 +00:00
sqlcoder
78004a2e76 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-11-29 17:37:19 +00:00
sqlcoder
65b372570f add some comments 2009-11-29 17:36:37 +00:00
sqlcoder
432a39b172 better icon for tab close buttons 2009-11-29 17:36:22 +00:00
Eric Blade
bab3ad6ca9 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-11-29 12:28:14 -05:00
Eric Blade
3f140ab157 exception traceback in idle_func in create_hud 2009-11-29 12:25:02 -05:00
Worros
a667fe37be Merge branch 'master' of git://repo.or.cz/fpbd-bostik
Conflicts:
	pyfpdb/HUD_main.py
2009-11-29 18:08:47 +08:00
Mika Bostrom
3e76033cd5 Do not minimize window when workspace changes
When we have the systray icon enabled, any window visibility event seems
to have WINDOW_STATE_ICONIFIED bit on. By checking both _ICONIFIED and
_WITHDRAWN the behaviour appears nicer.
2009-11-29 11:21:11 +02:00
Worros
8d10cbcd5e test_PokerStars - Add test for 5 card draw 2009-11-29 17:10:14 +08:00
Worros
a6a3217bbc Fix draw parsing finally? 2009-11-29 16:54:15 +08:00
Worros
39f27bc781 test_PokerStars: Add 2-7 Lowball test 2009-11-29 15:28:32 +08:00
Worros
9071640182 Fix Draw parsing 2009-11-29 15:22:46 +08:00
Worros
f5d8f153b5 Start of fixes to draw parsing 2009-11-29 14:40:32 +08:00
Worros
e93412f12d Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-29 11:44:26 +08:00
sqlcoder
c77ae39077 add close buttons to tabs 2009-11-28 23:36:54 +00:00
sqlcoder
db3371a202 use notebook widget to show proper tabs 2009-11-28 22:00:44 +00:00
sqlcoder
cce1545024 add gui stuff to test, stop crash if xml.dom.ext not present 2009-11-28 21:11:52 +00:00
sqlcoder
7f40d9dd3a change default for min_seats to 0 in case hc.activeSeats is zero 2009-11-28 11:48:06 +00:00
Mika Bostrom
2f742e371b Use wider try-except block
The 'temp_key' table name in hud_dict can vanish between DB roundtrips.
Enclose all three lines within try-block.
2009-11-28 10:59:44 +02:00
Mika Bostrom
81e77ebfcf Merge branch 'master' into hudfix 2009-11-28 10:58:23 +02:00
Mika Bostrom
6dec7f38f3 Fix a stupid syntax error
Use python's format-string syntax.
2009-11-27 22:21:45 +02:00
Worros
a13ae41134 Fix MySQL startup error: 2002
2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
2009-11-27 20:19:43 +08:00
Eric Blade
41c963baa9 look at all that whitespace churn.. sorry my git just acts weird. it's gitty. 2009-11-27 02:09:06 -05:00
Eric Blade
f7aced68c6 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-11-27 02:08:15 -05:00
sqlcoder
b60895a89f merge from carl 2009-11-26 22:35:50 +00:00
sqlcoder
6037f17fb9 added seats options to hud menu 2009-11-26 22:24:24 +00:00
sqlcoder
65fe163379 add ability to display hud stats by number of seats at table (All / Custom / Exact) 2009-11-26 21:28:05 +00:00
Mika Bostrom
df6d9a0a56 Fix missing checks before .set_active()
Some validity tests were still missing. Also, typofix:
self.cbFl -> self.cbFL
2009-11-26 23:07:58 +02:00
Worros
0368992289 Add test config used by py.test 2009-11-27 00:19:31 +08:00
Worros
8371ed244a test_PokerStars - add test Stud files and import
Also add commented out tests for Draw games
2009-11-27 00:12:57 +08:00
Worros
411d4ac792 test_PokerStars - Add NLHE-USD-MTT-5r-200710.txt
Commented out for the moment, it has never parsed in old or new code.
2009-11-26 22:52:27 +08:00
Worros
5b5216bbe2 Fix test_PokerStars.py 2009-11-26 22:41:42 +08:00
Worros
b794d20f6d Make sqlite :memory: work again 2009-11-26 22:02:48 +08:00
Worros
9e7e22ffa1 Start of in tree HH archive 2009-11-26 17:00:22 +08:00
Worros
ac96d88a8c Merge branch 'master' of git://git.assembla.com/fpdb-sql 2009-11-26 10:01:53 +08:00
Worros
c9901c3106 Merge branch 'master' of git://git.assembla.com/fpdb-eric 2009-11-26 10:01:39 +08:00
sqlcoder
9d754e5e4b make sure db locks are released 2009-11-25 20:55:58 +00:00
Mika Bostrom
cb9e2cb6e7 Try to fix two HUD main hangs
The main HUD process can hang due to unhandled exceptions, which
occurred in two separate situations:

1. Table window is closed and HUD instance killed before auto-importer
knows about it
2. Sometimes the threading can jam

These changes attempt to counter the effect of race-conditions. The
dictionary key (table name) is properly tested at the beginning of
update/create block, *but* there are two short round-trips to database
before the key is used. While these occur, the HUD instance can vanish
and thus get its key removed from the dictionary.

Also, when Tables.Table() is created, it will be populated on-demand,
and have child attributes only when such are found from the system. The
new table code pulls in data from actual windows. Again, there is a
query involved and while it runs, the table may have vanished. This
ended up as an error in this call:

foo = gtk.gdk.window_foreign_new(table.number)

The object 'table' is valid (not None) but it has been populated only
after actual table window was killed. Therefore it may not have .number
attribute, which raised an AttributeError. Now the presence of
table.number attribute is tested before the object can be sent to
create_HUD().
2009-11-25 20:31:02 +02:00
Mika Bostrom
c7342e4b0f Test the correct attribute
When testing for Tables.Table validity, we actually care about the
'number' attribute, because that gets passed around on create_HUD()
2009-11-25 15:31:45 +02:00
Eric Blade
97f79c3cc5 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-11-25 08:24:23 -05:00
Eric Blade
0b4f5acec1 some weird whitespace churning, and again comment out "sending hand to hud" message 2009-11-25 08:22:14 -05:00
Mika Bostrom
a7163f5f8c Move return value outside try-finally block
The return value is for Glib/GTK event loop, so it should be after
try-finally sequence. The value needs to be returned every time and we
really like to have threads_enter()/threads_leave() to be invoked in
pairs.
2009-11-25 14:42:17 +02:00
Mika Bostrom
9e23346e5b Merge branch 'master' into hudfix 2009-11-25 14:41:01 +02:00
Mika Bostrom
5435c164f9 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-11-25 14:40:50 +02:00
Mika Bostrom
9c591da893 Saner exit for thread-unsafe code
It can't be right that we return from threads_enter() before releasing
the global lock. Exit works properly for failure (try-finally).
2009-11-25 11:10:34 +02:00
Worros
aee9a7339c [NEWIMPORT] Stop duplicate hands from crashing import 2009-11-25 16:29:30 +08:00
Worros
83f06c35cc [NEWIMPORT] HandsPlayers.CBet stats 2009-11-25 14:59:29 +08:00
Mika Bostrom
df8e0a5899 Merge branch 'master' into hudfix 2009-11-25 08:50:30 +02:00
Mika Bostrom
8d64a720c4 Merge branch 'master' of git://git.assembla.com/fpdboz 2009-11-25 08:50:08 +02:00
Mika Bostrom
752e50ad4c Better test
Built-in function hasattr() deals with and hides the exception
2009-11-25 07:26:26 +02:00