fpdb/pyfpdb
Mika Bostrom e54c45b7d1 Fix database creation with Postgres
* Database.py : fillDefaultData()

PostgreSQL has a rather annoying (mis)feature when dealing with boolean
data types: raw 1/0 input as integer is not automatically cast to
boolean values. Instead, one must use one of several other ways of
signifying true/false.
http://www.postgresql.org/docs/8.4/static/datatype-boolean.html
documents the available and understood formatting.

Fix by special-casing PostgreSQL and making all boolean values fed as
strings, '1' for true and '0' for false.
2009-09-19 11:44:06 +03:00
..
AbsoluteToFpdb.py Remove BOM from AbsoluteToPoker.py 2009-09-06 22:40:27 +08:00
BetfairToFpdb.py FulltiltToFpdb handles canceled hands 2009-08-09 15:19:43 +01:00
CarbonToFpdb.py Add additional siteids to db, move player select function 2009-06-01 17:14:31 +08:00
Card.py move constant dicts/lists from functions to global vars, so they aren't loaded every time the function is run 2009-07-31 00:40:31 -04:00
Cards01.png p58 - added HUD from ray 2008-08-18 23:53:25 +01:00
Cards0-HMHUD.png new cards file 2009-03-10 20:31:09 -04:00
CliFpdb.py p144 - updated table design after comments on draw tables 2008-12-10 03:55:12 +00:00
Configuration.py 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
Database.py Fix database creation with Postgres 2009-09-19 11:44:06 +03:00
DerivedStats.py Prototyping some stats calculations. 2009-08-05 19:08:53 -04:00
EverleafToFpdb.py FulltiltToFpdb handles canceled hands 2009-08-09 15:19:43 +01:00
Exceptions.py Database: re-write and fix drop_tables 2009-09-04 06:49:46 -05:00
Filters.py use do_connect() instead of connect() and remove settings parameter (config includes them) 2009-06-22 23:19:03 +01:00
fpdb_db.py db can be specified in cmd line option again 2009-09-04 22:12:35 +01:00
fpdb_import.py 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
fpdb_parse_logic.py Merge branch 'master' of git://git.assembla.com/fpt_fpdb 2009-09-04 12:45:49 +08:00
fpdb_simple.py Merge branch 'master' of git://git.assembla.com/fpt_fpdb 2009-09-04 12:45:49 +08:00
fpdb.py add sqlcoder to about 2009-09-09 21:04:38 -05:00
FpdbSQLQueries.py move most stuff from fpdb_db.py to Database.py and simplify db connections in fpdb_import 2009-07-28 23:58:10 +01:00
FulltiltToFpdb.py Correct oddity : self.status = status = self.getPlayersPosit... and status unused 2009-09-03 07:51:05 +02:00
GuiAutoImport.py 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
GuiBulkImport.py HHC/fpdb_import: throw in some calls to gtk.main_iteration(False) 2009-09-09 22:10:55 -05:00
GuiGraphViewer.py Add back in sqlcoders changes for sqlite - fix Grapher 2009-08-08 13:56:53 +08:00
GuiPlayerStats.py aptofpdb: remove debugging print 2009-08-06 07:23:57 -04:00
GuiPositionalStats.py make positional stats use Database.py 2009-07-19 18:28:13 +01:00
GuiSessionViewer.py Add guards around numpy in GuiSessionViewer for windows users 2009-09-03 11:29:30 +08:00
GuiTableViewer.py merge from futz2 branch 2009-08-28 18:24:51 +01:00
Hand.py Merge branch 'master' of git://git.assembla.com/fpt_fpdb 2009-09-04 12:45:49 +08:00
HandHistory.py p58 - added HUD from ray 2008-08-18 23:53:25 +01:00
HandHistoryConverter.py 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
Hello.py Added Hello_Seats to Hello.py. Demo of Aux_Seats class. 2009-06-30 11:45:14 -04:00
HUD_config.xml.example Added party hh path into HUD_config.xml.example 2009-08-08 15:47:58 +04:00
HUD_main.py some error cleanup 2009-09-04 05:09:03 -05:00
HUD_run_me.py HUD_runme.py needs to be executable. 2009-01-12 19:20:24 -05:00
Hud.py little cleanup 2009-09-06 23:07:40 -05:00
interlocks.py trying to get my new install of git to freaking work 2009-08-12 04:09:04 -05:00
logging.conf Only errors to stderr and console. 2009-09-03 22:40:06 +01:00
makeexe.bat 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
makeexe.py 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
Mucked.py Fix mucked cards' position update 2009-08-15 10:44:04 +03:00
OnGameToFpdb.py Add additional siteids to db, move player select function 2009-06-01 17:14:31 +08:00
Options.py restart python if running an old version and 2.5 or 2.6 is available on PATH (Windows) 2009-08-01 12:45:10 +01:00
PartyPokerToFpdb.py Party hhc: fixes 2009-08-12 11:18:42 +04:00
PokerStarsToFpdb.py Merge branch 'master' of git://repo.or.cz/fpbd-bostik 2009-08-12 22:49:18 +08:00
py2exe_setup.py crlf churn i think 2009-09-03 02:46:22 -05:00
SQL.py Fix table creation for Postgres 2009-09-19 11:10:07 +03:00
Stats.py _x (where x is a single digit) at the end of a stat name in hud_config.xml now indicates the number of decimal places to display in the HUD. Some stats renamed slightly to remove the _ before last character of name. 2009-07-23 23:15:02 +01:00
SummaryEverleaf.py add "rebuy" button to TT 2009-08-21 00:48:26 -05:00
Tables_Demo.py fix some junk related to determining window height/width, b_width and tb_height, comment out the window_foreign_new() that's screwing up the window right now 2009-06-10 12:58:14 -04:00
Tables.py 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
TableWindow.py New table handling stuff and demo. 2009-05-21 11:13:39 -04:00
test_Betfair.py Add test file for betfair 2009-03-12 20:01:41 +09:00
test_Everleaf.py Make determineGameType return 'tour' of currency is T$ 2009-03-13 18:45:15 +09:00
test_fpdb_simple.py Fix tests 2009-06-09 23:08:18 +08:00
test_FullTilt.py FulltiltToFpdb handles canceled hands 2009-08-09 15:19:43 +01:00
test_PokerStars.py FulltiltToFpdb handles canceled hands 2009-08-09 15:19:43 +01:00
TournamentTracker.py add "rebuy" button to TT 2009-08-21 00:48:26 -05:00
Tourney.py Last part of core tourney import 2009-09-04 02:01:41 +02:00
UltimateBetToFpdb.py Add index parameter to Plugins 2009-07-17 17:45:22 +08:00
upd_indexes.sql trying to get my new install of git to freaking work 2009-08-12 04:09:04 -05:00
Win2dayToFpdb.py FulltiltToFpdb handles canceled hands 2009-08-09 15:19:43 +01:00
windows_make_bats.py merge from carl 2009-08-02 07:14:31 -04:00
WinTables.py fix get_geometry to use the correct parameters to IsWindow and GetWindowRect (too much error trapping will create pitfalls), use main_window.window instead of window_foreign_new() to get gdkhandle for gtkwindow, remove process enumeration in topify() for windows 2009-06-10 13:47:07 -04:00
XTables.py New table handling stuff and demo. 2009-05-21 11:13:39 -04:00