Commit Graph
100 Commits
Author SHA1 Message Date
Eric Blade 3e7a0ef53c remove all occurences of assigning sys.argv 2009-11-22 16:40:56 -05:00
Eric Blade 19497dd480 Merge branch 'master' of git://git.assembla.com/fpdb-eric.git 2009-11-22 00:04:28 -05:00
Eric Blade 64d9a3582b No longer mess with sys.argv (messing with system variables is a bad thing, right), use argv to determine pathname of executeable as sys.path[0] is just the first component of the path. also all database errors except MySQL reporting "Access Denied" should now crash FPDB, so someone can fill those into Exceptions, and into the fpdb_db and the fpdb files.
Process: get crash info, add exception info to Exceptions.py, catch generic database exception in fpdb_db.py (around the connect line), throw correct Fpdb exception, then catch it in fpdb.py and do the appropriate thing on the GUI end.
2009-11-22 00:00:23 -05:00
Eric Blade 3c26971414 Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/SQL.py
2009-11-20 07:49:48 -05:00
Eric Blade 91247bab9b Merge branch 'master' of git://git.assembla.com/free_poker_tools.git
Conflicts:
	pyfpdb/SQL.py
2009-11-07 11:54:45 -05:00
Eric Blade d4cbed121d fix indentation errors 2009-10-09 07:39:05 -04:00
Eric Blade 8eeac34fce Merge branch 'master' of git://git.assembla.com/fpdb-sql.git 2009-10-09 07:35:12 -04:00
Eric Blade 05ccca63ad Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/fpdb.py
2009-10-09 07:34:13 -04:00
Eric Blade ee864033ee Add exception for not being able to connect to MySQL, make use of it to pop up an error box 2009-10-09 07:31:25 -04:00
Eric Blade 3f0ede67ee fix a small error that caused deletion of your hud_config when saving.. oopsie 2009-09-17 05:26:06 -05:00
Eric Blade 226153f15f Revert "FTtoFPDB: readBlinds: cleanup exception handler"
This reverts commit 0938afb882.

Conflicts:

	pyfpdb/FulltiltToFpdb.py
2009-09-16 01:40:43 -05:00
Eric Blade 05267db38a i hate git, i hate git, yes i do 2009-09-16 01:36:34 -05:00
Eric Blade fbceb6d7af bypass the changes made in readBlinds which somehow broke the hell out of stuff 2009-09-16 01:28:28 -05:00
Eric Blade 7ed5d0972e use with..as for file reading/writing, as we don't need 2.4 compat anyway right? 2009-09-16 01:26:19 -05:00
Eric Blade ded05cb290 put the regex search back into the try: in FT readBlinds() because it broke FL games somehow 2009-09-16 00:54:29 -05:00
Eric Blade 2095f3c899 use with..as for file reading/writing, as we don't need 2.4 compat anyway right? 2009-09-16 00:13:42 -05:00
Eric Blade 0938afb882 FTtoFPDB: readBlinds: cleanup exception handler
also deal with finishPositions not being accurate, by printing a message to that effect, instead of crashing an import
2009-09-15 23:32:23 -05:00
Eric Blade ba1513847b clean up exception handling in Configuration and imports in GuiGraphViewer 2009-09-15 23:30:59 -05:00
Eric Blade bcecf643f2 cleanup imports section and spacing in fpdb_db 2009-09-15 22:10:37 -05:00
Eric Blade ba663c231c cleanups 2009-09-15 22:04:37 -05:00
Eric Blade a566d52b9a cleaning cleaning cleaning.. keep them coders cleaning.. cleaning cleaning cleaning.. 2009-09-15 21:26:10 -05:00
Eric Blade 23acfbd642 deal with KeyErrors in update() in a vaguely intelligent fashion 2009-09-15 21:25:26 -05:00
Eric Blade 2790a623af import, code, exception cleanups 2009-09-15 21:07:31 -05:00
Eric Blade e4772dcb74 init vars used in load_clicked, comment out the exception handler that was single handedly stopping virtually all errors in the import process from showing up 2009-09-15 21:06:43 -05:00
Eric Blade a1783a37cb reflow init_hud_stat_vars exception handling 2009-09-15 21:04:00 -05:00
Eric Blade d6c5309aa3 clean up some module import code in fpdb_import 2009-09-15 20:10:18 -05:00
Eric Blade 8b19750b1f == None to is None (PEP 8, Style Guide for Python Code) 2009-09-15 19:27:25 -05:00
Eric Blade 4374b6c810 remove Database:__init__ parameters for db_name and game, as there was a comment right next to them # db_name and game not used anymore 2009-09-15 18:49:34 -05:00
Eric Blade b0616a7d2c as soon as a stat window is clicked on, with any button, bring it forward. this seems to almost completely solve the insane focus-wobbling in windows 2009-09-13 15:08:23 -05:00
Eric Blade 7283d09b4d replace "trying *codepage*" message to console with an error message only if none of our specified codepages is successful 2009-09-11 00:38:20 -05:00
Eric Blade 715b14f81a moved timeout_add that calls do_import outside of the for loop, so it's only created once per autoimport start, not once per site. fix addImportFile to ignore files that don't exist (not sure how they'd get there, but just in case), fixed exception looking for fpdb_simple.DuplicateError to look in it's actual location at Exceptions.DuplicateError 2009-09-11 00:12:46 -05:00
Eric Blade 1f9dd8f8e9 HHC/fpdb_import: throw in some calls to gtk.main_iteration(False)
GuiBulkImport: replace "Importing" label with actual progressbar (does not use percentages, simply an activity bar)
2009-09-09 22:10:55 -05:00
Eric Blade 993199c010 add sqlcoder to about 2009-09-09 21:04:38 -05:00
Eric Blade 705210a96d use the "proper" gtk.AboutDialog() for About ... meh 2009-09-09 20:57:16 -05:00
Eric Blade 345e328795 Add Set HH Archive Directory option to Import menu on main, call it if user selects "no" on "create hh directory" prompt 2009-09-09 20:26:44 -05:00
Eric Blade ae04f5562a Configuration::Import keeps track of it's node, added function to Configuration::Config to set the Import's hhArchiveBase 2009-09-09 20:21:27 -05:00
Eric Blade 2bf3aaa1bc most of the unimplemented stuff goes to warning_box() instead of to log/stdout. Implemented About (via warning_box, w/e) 2009-09-09 18:36:55 -05:00
Eric Blade 2397a59483 add warning_box func to fpdb, add validate_config func, checks existence of hhArchiveBase, pops up warnings if not present
hhc traps errors creating folders, need to learn how to make it fail properly afterwards.
2009-09-09 18:20:50 -05:00
Eric Blade 6238e2f896 spacing 2009-09-09 17:41:32 -05:00
Eric Blade 28450b1b8a remove tons of useless comments from fpdb.py - documentation should say something that isn't blazingly obvious by looking at the code 2009-09-09 05:01:03 -05:00
Eric Blade e681fe4958 little cleanup 2009-09-06 23:07:40 -05:00
Eric Blade fec805c9d3 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-09-06 23:07:13 -05:00
Eric Blade 1b5c70007c Merge branch 'master' of git://git.assembla.com/mctfpdb.git 2009-09-05 03:55:56 -05:00
Eric Blade e7d43ceaca fix taskbar listing of fpdb hud 2009-09-04 14:14:38 -05:00
Eric Blade 97a62933e4 remove logging.out from the git tree 2009-09-04 06:51:05 -05:00
Eric Blade 9fa57b6014 Database: re-write and fix drop_tables
Exceptions: add FpdbDatabaseError
SQL: default all tourneytypeids to 1
fpdb_import: import error tuples set to right size
2009-09-04 06:49:46 -05:00
Eric Blade 9a44a2efef Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/HandHistoryConverter.py
2009-09-04 05:11:01 -05:00
Eric Blade a7dd023616 some error cleanup 2009-09-04 05:09:03 -05:00
Eric Blade 844a01318a cleanup to hud window creation, menu creation, deal properly with calls to the timeout function when we're not ready for it yet, simplify the "topify" methods, hopefully fix some focus problems 2009-09-03 09:35:59 -05:00
Eric Blade b7495395e8 crlf churn i think 2009-09-03 02:46:22 -05:00
Eric Blade 18e03311e6 Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2009-09-03 02:45:49 -05:00
Eric Blade 59a1cef821 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-09-03 02:44:11 -05:00
Eric Blade 6568281589 Hand: will give you a proper message to the console if it can't figure out what your datetime passed to it is 2009-08-31 03:19:23 -05:00
Eric Blade 891ed0295f Absolute: Add support for HORSE Holdem, attempts to determine table name from filename if it can't find it in the hand 2009-08-31 03:18:00 -05:00
Eric Blade 63741468d0 removing "sending hand to hud" debug message 2009-08-30 12:45:02 -05:00
Eric Blade d39fe74284 Merge branch 'master' of git://git.assembla.com/mctfpdb.git 2009-08-30 12:44:36 -05:00
Eric Blade a965e34415 Merge branch 'master' of git@git.assembla.com:fpdb-eric.git 2009-08-29 06:55:01 -05:00
Eric Blade bd7f3de3d7 Conflicts:
pyfpdb/fpdb_import.py
2009-08-29 06:54:20 -05:00
Eric Blade 5b6a3b5b73 Merge branch 'master' of git://git.assembla.com/mctfpdb.git
Conflicts:
	pyfpdb/fpdb_import.py
2009-08-28 18:01:01 -05:00
Eric Blade 637bdcbdfc fix #17, Absolute Poker antes and even-amount stakes now parse 2009-08-27 10:27:19 -05:00
Eric Blade c98f8aab8c Merge branch 'master' of git://git.assembla.com/fpdb-eric.git 2009-08-27 07:45:04 -05:00
Eric Blade 2ae6790421 fix popup window (if your configuration is correct anyway) 2009-08-27 07:41:43 -05:00
Eric Blade 079ce989cc Tables: add " - Table " to ignore strings, so we don't attach to Absolute chat windows 2009-08-27 04:28:59 -05:00
Eric Blade 9c391088ed Tables: add " - Table " to ignore strings, so we don't attach to Absolute chat windows 2009-08-27 02:30:15 -05:00
Eric Blade f91e6d1d69 AbsoluteToFpdb: fix for HU and FL tables (need to verify data coming in for PL and NL tables now, as that required code changes to blind handling as well), also likely fixes bug #14 where HU NL hands would not convert properly (also still need to test) 2009-08-27 02:29:44 -05:00
Eric Blade 8420e22038 add in Ante RegEx for Absolute .. hopefully it works, but I don't have the roll there to play holdem with Antes to find out 2009-08-21 05:57:04 -05:00
Eric Blade d5d0c9aee3 add "rebuy" button to TT 2009-08-21 00:48:26 -05:00
Eric Blade 832b7fe4db add first revision of my TournamentTracker idea, actually based on the HUD_main program :)
fix SummaryEverleaf to be a little more friendly to being imported and accessed from other modules
TournamentTracker pops open an Edit Window when you add a tournament, but I don't know how to actually populate it with Edit boxes yet
2009-08-21 00:42:19 -05:00
Eric Blade 629159c785 rename Summary-Everleaf to SummaryEverleaf, as I've discovered you can't import a module with a "-" in it's filename 2009-08-21 00:23:07 -05:00
Eric Blade 1ecafb7f42 push test Summary-Everleaf program to obtain information about Everleaf tournaments from HTTP 2009-08-19 23:42:10 -05:00
Eric Blade 0b11530e9e Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2009-08-19 06:00:52 -05:00
Eric Blade 677b0a5e35 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-08-19 05:59:50 -05:00
Eric Blade fafbda8053 add proper returns for our mouse-button callbacks in HUD, also trap events for focus change, which doesn't entirely solve the focus issues, but does lessen them for me 2009-08-19 05:59:44 -05:00
Eric Blade 9f89340881 timeout in startbutton reset resets to Stop or Start as appropriate 2009-08-16 14:30:52 -05:00
Eric Blade 8bba1fd932 structured Exceptions a bit more like most python apps seem to do it (and as suggested in the manual) 2009-08-16 07:32:56 -05:00
Eric Blade d495606f2a GuiAutoImport:
do_import: change label of Stop button when running an import, to provide a visual indicator
 startClicked: refactor so only the Pipe Open is inside the exception handler, since that should be the only thing in there that we need to ignore an exception from.
2009-08-16 05:30:11 -05:00
Eric Blade aa0610dcfa fpdb: remove error trap on "Recreate Tables" menu option - trapping should be much more localized. 2009-08-16 04:46:41 -05:00
Eric Blade a90415bc84 Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2009-08-16 04:23:49 -05:00
Eric Blade b26f4a09ce Absolute: support Pot Limit and Fixed Limit ("Normal" as they call it)
Configuration: Only trap the thrown error when checking for existence of site default paths, if not found set path to a reasonable ERROR message instead of "default"
2009-08-16 04:22:22 -05:00
Eric Blade 7dc635670d Merge branch 'master' of git://git.assembla.com/free_poker_tools.git
Conflicts:
	pyfpdb/HandHistoryConverter.py
	pyfpdb/SQL.py
2009-08-12 04:26:42 -05:00
Eric Blade f31f2e442e Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/HandHistoryConverter.py
2009-08-12 04:24:04 -05:00
Eric Blade bfec6916f6 trying to get my new install of git to freaking work 2009-08-12 04:09:04 -05:00
eblade f431a63070 badHangs -> badHands 2009-08-08 15:58:30 -04:00
eblade 4445881bfe somehow a call to get_cursor() got turned into just a db pass .. and removed the debug code in recogniseplayerids 2009-08-07 17:18:51 -04:00
eblade 43b41e88f4 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git
Conflicts:
	pyfpdb/fpdb_simple.py
2009-08-07 04:55:08 -04:00
eblade a9c851586c Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2009-08-06 12:28:02 -04:00
eblade c6747785e2 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-08-06 12:27:38 -04:00
eblade f65e4e005a aptofpdb: remove debugging print
guiautoimport: import traceback
fpdb_simple/GuiPlayerStats: deal with multiple sites with players with matching names
HUD_main: error file is again HUD-error not fpdb-error-log.
2009-08-06 07:23:57 -04:00
eblade a7f857a90c Revert "Make sure the db connection is encoded using utf8"
This reverts commit 2c9982cfff.
2009-08-06 02:11:26 -04:00
eblade afc4c026f9 Tables: change how the case insensitivity is done, so we don't crap out on Everleaf 2009-08-06 02:10:49 -04:00
eblade 42109ec4e4 Tables: windows table title searching now case insensitive 2009-08-06 00:12:49 -04:00
eblade 2e698bb1d4 Merge branch 'master' of git://git.assembla.com/fpdboz.git
Conflicts:
	pyfpdb/AbsoluteToFpdb.py
2009-08-06 00:00:29 -04:00
eblade 2685608294 bump atofpdb siteid
configuration should not error if 'site' is empty (ie when running from command line)
guiplayerstats won't auto-load default report
hud should work from command line
2009-08-05 23:57:26 -04:00
eblade f85e7cb230 AbsoluteToFpdb: convert cards 10s to Ts, etc
fpdb_import: clear updatedsize, updatedtime, pos_in_file lists, so we can attempt multiple imports on same file, rather than just getting error when trying.
2009-08-05 21:35:01 -04:00
eblade 34c469ab3a Add AbsoluteToFpdb.py
Database: Add Absolute to sites
GuiPlayerStats: set avgseats to False
Hand: Add Absolute to SITEIDS list
fpdb_import: check for presence of settings['dropHudCache'] before testing it, to keep command line import from erroring
2009-08-05 21:07:16 -04:00
eblade 91e6783869 GuiBulkImport: bump max thread counter to 32 .. 2009-08-04 21:36:30 -04:00
eblade 9656db0b80 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git 2009-08-04 20:22:25 -04:00
eblade eae278f40c Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-08-04 19:57:06 -04:00
eblade cf3c7276a7 add bat/py for making an exe. exe errors with "can't find module cairo". no idea how to fix. 2009-08-04 16:20:14 -04:00
eblade 541c61c152 Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2009-08-03 18:18:48 -04:00