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
9f89340881
timeout in startbutton reset resets to Stop or Start as appropriate
2009-08-16 14:30:52 -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
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
sqlcoder
cffe57dfa3
pass sql list through to importer from fpdb.py
2009-08-01 23:29:00 +01:00
sqlcoder
3b9fa3b177
add useful (hopefully) exception handler
2009-07-31 22:34:26 +01:00
sqlcoder
3352f608cf
take global lock while doing imports
2009-07-18 23:01:18 +01:00
Ray
bb633fd435
Correctly pass cl options to HUD_main in Windows.
2009-06-16 20:04:06 -04:00
Ray
b1ea38bea9
Add -c config cl option. Fpdb passes cl options to HUD.
2009-06-14 23:14:53 -04:00
sqlcoder
afee4ddb8c
minor cosmetic change to autoimport button
2009-05-27 22:25:29 +01:00
sqlcoder
ee9d69ae5e
more minor cosmetic changes
2009-05-21 23:09:11 +01:00
sqlcoder
a9963a6a47
try to improve look of autoimport tab
2009-05-21 23:00:46 +01:00
Ray
fb4e818ed2
get_sites now returns only enabled sites--enabled is the default in Config.
2009-03-29 23:40:03 -04:00
Matt Turnbull
239330ae7b
filterCrap after checking if hand is in db
...
refactor GuiBulkImport : add main() so that it can be called from
interactive shell (for profiling purposes).
2009-03-21 15:34:23 +00:00
Matt Turnbull
1e047b6998
Don't error gruesomely when someone exports nonexistant graph
...
sys.path[0] to get basepath of fpdb script
2009-03-05 12:31:56 +00:00
Matt Turnbull
75dcf002f9
Configuration: _getframe(0) so that GuiAutoImport can run standalone
...
(stack not deep enough to go one deeper)
fpdb_import: Everleaf plumbing back in place.
GuiAutoImport.py: run standalone.
2009-03-05 01:12:15 +00:00
Ray
c535dc7f24
Cleaner intermediate print during autoimport.
2009-02-24 10:54:02 -05:00
Ray
2ebb026543
Cleanup in HUD_main and HUD.py to simplify.
...
HUD_run_me no longer needed but not removed.
2009-02-21 18:19:49 -05:00
eblade
fb9d7c0af2
Add file HUD_run_me, to be run by GuiAutoImport
...
GuiAutoImport: run HUD_run_me instead of HUD_main
HUD_main: Add HUD_removed() function, called by HUD when an individual HUD is closed, eliminates polling them every update; use 'in' operator instead of has_key
HUD: clean up code that deals with lack of font descriptor in config, and notification of what font was selected
HUD: clean up unnecessary use of keys() functions, and 'in' vs has_key
HUD: restore previous definition of reposition_windows(), although i can't make it error at will anymore
Tables: cleanup with keys() and in operator
fpdb: no longer raise an error on duplicate tab, since we currently depend on that, it's not an error, right?
2009-01-06 05:18:45 -05:00
Matt Turnbull
a76442f67e
Poll if HUD window is already terminated before attempting to
...
communicate the \n character to tell it to terminate.
2008-12-22 20:17:29 +00:00
Matt Turnbull
7803f52307
autoimport a bit better, no?
2008-12-18 17:49:17 +00:00
Worros
764ef1b286
Merge branch 'master' of git://git.assembla.com/mctfpdb
...
Merge execution fixes from Ray with toggle button code from Matt.
Conflicts:
pyfpdb/GuiAutoImport.py
2008-12-15 17:22:49 +09:00
Ray
094f176c5d
Moved execution_path() to Configuration.py.
2008-12-13 17:37:23 -05:00
Ray
3994d3bb94
Get and use path for HUD_main.py to prevent some crashes.
2008-12-13 14:57:08 -05:00
Matt Turnbull
24805700da
StopAutoImport kills HUD
2008-12-13 01:06:26 +00:00
Matt Turnbull
cbac52ccbb
Autoimport toggle button
2008-12-13 00:52:31 +00:00
Worros
6de1ac1c82
Merge branch 'master' of git://git.assembla.com/fpdb-eric
2008-11-10 22:55:24 +10:00
eblade
f767ec2207
windows git is buggy
2008-11-10 03:22:21 -05:00
Worros
d4038c3f19
Lots of changes. Fixes the hud for auto-import - at least for me.
...
Does configer Importer to use the Config class.
2008-11-09 21:57:58 +10:00
Worros
d0218363c6
Fix GuiAutoImport startup after I deleted the default setting in a previous patch.
...
Setting now comes from config
2008-11-09 20:57:42 +10:00
Worros
68344b5ec0
Modified Auto import GUI to allow n-sites based on config file. Added filter option to display. Added option to enable or disable sites in Config
2008-11-06 18:39:49 +13:00
Worros
92381254e8
Change the filelist and dirlist type to be a hash of lists, delete postgres sql schema
...
dirlist is in the form:
{'Site': [ "/path/to/dir", "filter" ] }
Where filter will be the plugin to convert to stars/fpdb hand history file.
filelist is in the form:
{'file': [ "site", "filter" ] }
2008-11-06 00:36:24 +13:00
Worros
0c8acc5ad4
Fix typo so Full Tilt default HH_path is read
2008-10-25 14:05:01 +08:00
Ray
2f78304185
cleanup of config file consolidation
2008-10-21 21:46:30 -04:00
Worros
d338a7c2f5
First draft of multi-site AutoImport.
...
GUI looks ugly, but appears to be working
Changed TextView widget to Entry because it look neater on my system
2008-10-18 00:28:33 +08:00
Worros
7fd517d76e
Replace multiline TBuffer with an Entry widget and rename
2008-10-17 20:31:36 +08:00
Worros
ee2017bb05
Fix comment - no mtime set at that point
2008-10-17 20:23:28 +08:00
Worros
5a085a6d23
Draft fix to mtime detection for files
2008-10-17 01:36:02 +08:00
Worros
9a60cf84c8
Real fix this time, modify GuiAutoImport to actually tell importer to monitor the directory
2008-10-13 02:06:28 +08:00
Worros
c2c37dc5ee
Fix mtime time detection
2008-10-12 18:21:42 +08:00
Worros
6c4e2f3eb9
Changes import_file_dict interface to Importer internal.
...
Users of Importer should now addImportFile and addImportDirectory, set paramaters, then run either runImport - all files or runUpdated - modified files.
Comments out postgres regression test until fixed
Adds initial code for importing regression test files.
2008-10-12 15:49:09 +08:00
Worros
638a6d6dab
Move more "options" from calling class into settings has of fpdb_import and fix all callers
2008-10-12 02:14:06 +08:00
Worros
1e8333ec5d
Move minPrint variable from callling class to setting in Importer class
2008-10-12 01:42:08 +08:00
Worros
27ca82ca48
Change api so object and settings are passed in at creation time.
2008-10-12 01:12:30 +08:00
Worros
ed7122ca31
Move callHud to class attribute and remove from function parameters
...
Fix all callers
2008-10-10 01:21:01 +08:00
Worros
98b556f42c
Turn fpdb_import functions into class Importer
...
Fix all callers of fpdb_import
2008-10-09 01:36:08 +08:00
steffen123
7b13331331
p80 - a great many updates from Ray
2008-09-15 21:31:55 +01:00
steffen123
d73a4614f3
p60 - patches from ray - autoimport now doesnt block GUI and calls HUD.
2008-08-19 23:38:01 +01:00
steffen123
c716dfd35e
p58 - added HUD from ray
...
fpdb_parse now returns hand id rather than site hand no
2008-08-18 23:53:25 +01:00
steffen123
928e7262f4
p57 - added optional call to hud into importer
...
changed config file to windows line endings
started updating print_hand to new tables
2008-08-18 15:41:34 +01:00
steffen123
5a462037c3
p46 - auto-importer kinda works - it does what its supposed to, but freezes the interface. you can however just start the interface a second time. anyone know how to fix this?
2008-08-17 05:28:26 +01:00
steffen123
e9d8b685ec
p42 - started implementing autoimport.
...
renamed some files to match the future more precise splitting of processing and frontend code
changing from gitX to pX to match Gentoo portage's convention.
changed table design on feedback from ray but not yet the actual code - more coming shortly
2008-08-17 01:48:03 +01:00