Commit Graph
100 Commits
Author SHA1 Message Date
Eric Blade 81ff8e632c remove my misunderstanding of how compileplayerregexs worked 2010-02-01 09:41:33 -05:00
Eric Blade e3be7db2a0 fix bug i introduced that caused everleaf cash hands to fail 2010-02-01 09:17:42 -05:00
Eric Blade 1656a0e6d1 Everleaf: adjust Everleaf regexs to support tournaments, add error printing on failure of compilePlayerRegexs, add ring omahahilo pl and tour hold nl to supported games list, determine tournament number/table number from processing filename, fix getTableTitleRe 2010-02-01 08:51:06 -05:00
Eric Blade 27f95c51b2 whitespace 2010-02-01 08:48:28 -05:00
Eric Blade 9cf75f7303 fix getTableTitleRe calling in HUD_main:read_stdin, to use site_name (currently processing site name) instead of "site" which was always last site_name on list
(this may break some people's HHC's, now that it works right)
2010-02-01 08:47:55 -05:00
Eric Blade 72b890c561 add "HUD Test mode" checkbox to bulk import, doesn't currently do anything. intent is to make the program auto open a dummy window for a hud to attach to, so we can bulk import files to investigate hud issues 2010-01-29 17:45:49 -05:00
Eric Blade f7ac36f3bb add getTableTitleRe to everleaf filter, doesn't seem to work 2010-01-29 17:44:58 -05:00
Eric Blade e56cb24ed1 to_utf8 returns what was passed in if unicode() errors because it's already encoded 2010-01-29 12:01:51 -05:00
Eric Blade e29491c25c use getpreferredencoding() instead of getdefaultlocale() to get LOCALE_ENCODING, default to cp1252 if it comes back with US-ASCII (Mac) 2010-01-28 20:29:43 -05:00
Eric Blade 725fb04bb8 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git
Conflicts:
	pyfpdb/Configuration.py
	pyfpdb/Database.py
2010-01-28 16:28:23 -05:00
Eric Blade f5d61b5bfc Merge branch 'master' of git://git.assembla.com/free_poker_tools.git 2010-01-28 16:25:47 -05:00
Eric Blade 8673cc3437 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-28 16:25:04 -05:00
Eric Blade 3381527afc raise FpdbHandDuplicate error on duplicate insert attempt, catch it in import_file_dict, increment duplicates count 2010-01-28 05:56:17 -05:00
Eric Blade d36ac3f927 rename DuplicateError to FpdbHandDuplicate, add matching FpdbHandError and FpdbHandPartial (not sure where to implement catching those though) 2010-01-28 05:55:06 -05:00
Eric Blade 2be8b9d33b get fpdb icon from absolute path instead of relative to cwd 2010-01-28 05:19:39 -05:00
Eric Blade 997483f909 make import timer work again 2010-01-28 05:19:19 -05:00
Eric Blade 803fcec6dc make hud_main call with full path in windows, as has been done in unix 2010-01-28 04:45:33 -05:00
Eric Blade 93729a4798 merge 2010-01-27 13:42:03 -05:00
Eric Blade 2dd5536d98 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-27 13:41:04 -05:00
Eric Blade f2f16b599c Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-27 06:26:28 -05:00
Eric Blade 79494ea7f9 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-27 02:23:50 -05:00
Eric Blade e5b485365f Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-26 00:48:19 -05:00
Eric Blade 193c59b15d Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-23 05:12:16 -05:00
Eric Blade 9be7f308a6 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-22 00:30:07 -05:00
Eric Blade 1287ab95e7 stupid windows git newline mangling 2010-01-01 20:53:27 -05:00
Eric Blade 798ce94c48 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2010-01-01 20:53:07 -05:00
Eric Blade 932695b40f Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-22 13:36:52 -05:00
Eric Blade 6683967091 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-19 04:31:16 -05:00
Eric Blade b25dedbf5e Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-17 04:07:25 -05:00
Eric Blade 7ca08899c5 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-15 06:08:30 -05:00
Eric Blade e221c9c0f6 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git 2009-12-09 21:36:34 -05:00
Eric Blade 5e7bd33cd0 no changes here 2009-12-08 17:48:52 -05:00
Eric Blade 505e956f07 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-08 17:48:22 -05:00
Eric Blade fcb04f879b Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-05 10:56:07 -05:00
Eric Blade 87c0634d76 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git 2009-12-03 22:57:36 -05:00
Eric Blade 6195397c88 fix typos.. durrr 2009-12-03 12:52:57 -05:00
Eric Blade adadb7defa slight optimizations 2009-12-03 12:51:10 -05:00
Eric Blade 3248cb60f2 added checks to see if player has folded when processing wether they've seen streets/showdown (corrects problem of player calling someone's short all in and it not counting as having seen showdown) 2009-12-03 12:35:00 -05:00
Eric Blade f05b521d6f comment out some prints, apparently mysqlcoder and my editors do not agree well with each other on spacing. 2009-12-03 07:24:12 -05:00
Eric Blade 81adfff93b Add some basic error handling at the very beginning of startup, to deal with missing imports and such, update about box 2009-12-03 07:22:33 -05:00
Eric Blade 2120257aee whitespace.. sorry guys. 2009-12-03 07:21:24 -05:00
Eric Blade 86449333c0 Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-03 06:30:08 -05:00
Eric Blade deb2f87bcc Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-12-02 05:14:49 -05:00
Eric Blade abf132c719 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git
Conflicts:
	pyfpdb/Database.py
2009-12-01 08:03:25 -05:00
Eric Blade bec343abfd argh at whitespace churn, do i have my editor settings screwey?
trap error 2003 on mysql connect (same as 2002, but for tcp)
2009-12-01 06:58:33 -05:00
Eric Blade 9953e76c9e trap IOError on hud pipe write when hud closed without autoimport stopping, turn off hud 2009-11-30 09:51:47 -05:00
Eric Blade 8c8fdba7c8 ttime = float with us to ms resolution 2009-11-30 09:08:30 -05:00
Eric Blade 284b0c1f38 fix return tuple in import_file_dict, fix text from autoimport to actually show up in autoimport window 2009-11-30 08:14:03 -05:00
Eric Blade 67beb4bd9f add textview to autoimport window for dropping status/info messages on, just call it's AddText func to get it there 2009-11-29 23:52:36 -05:00
Eric Blade 3439523de8 Merge branch 'master' of git://git.assembla.com/fpdb-sql.git 2009-11-29 22:02:49 -05: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
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
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
Eric Blade 9bf5017ff1 re-enable exception handling in idle_func() now that i know what we could expect to trap reasonably. Deal in update() with what might happen if update_table_position() fails 2009-11-24 06:08:43 -05:00
Eric Blade a735ab67b2 stuck an error print in wintables if self.window doesn't exist 2009-11-23 10:24:38 -05:00
Eric Blade 32e7a28d2c Merge branch 'master' of git://git.assembla.com/fpdboz.git 2009-11-22 16:44:22 -05:00
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