p111 - Database.py now works without unnecessary db libs. Configuration.py made executable. stderr now unbuffered.
This commit is contained in:
parent
4b432d7ccd
commit
f1947bb6cb
|
@ -1,7 +1,7 @@
|
||||||
Everything is subject to change and the order does not indicate priority. Patches for any of these or other features are very welcome, see readme-overview.txt for contacts.
|
Everything is subject to change and the order does not indicate priority. Patches for any of these or other features are very welcome, see readme-overview.txt for contacts.
|
||||||
Please also see db-todo.txt
|
Please also see db-todo.txt
|
||||||
|
|
||||||
alpha5 (release 25Sep-2Oct)
|
alpha6 (release 3Oct-10Oct)
|
||||||
======
|
======
|
||||||
pgsql recreate doesnt work, and it may not store version field on creation if using sql file with pgadmin.
|
pgsql recreate doesnt work, and it may not store version field on creation if using sql file with pgadmin.
|
||||||
check we're reading mucked cards from PS
|
check we're reading mucked cards from PS
|
||||||
|
@ -39,6 +39,8 @@ Many STTs won't import
|
||||||
|
|
||||||
before beta
|
before beta
|
||||||
===========
|
===========
|
||||||
|
autoimport doesnt seem to work with just one hand in the file
|
||||||
|
make Database.py display error if wrong or missing db lib
|
||||||
Import draw (maybe without HudCache for a start)
|
Import draw (maybe without HudCache for a start)
|
||||||
graphs for SD/F, W$wSF, W$@SD
|
graphs for SD/F, W$wSF, W$@SD
|
||||||
validate webpage
|
validate webpage
|
||||||
|
|
0
pyfpdb/Configuration.py
Normal file → Executable file
0
pyfpdb/Configuration.py
Normal file → Executable file
|
@ -33,11 +33,17 @@ import Configuration
|
||||||
import SQL
|
import SQL
|
||||||
|
|
||||||
# pgdb database module for posgres via DB-API
|
# pgdb database module for posgres via DB-API
|
||||||
import psycopg2
|
try:
|
||||||
|
import psycopg2
|
||||||
# pgdb uses pyformat. is that fixed or an option?
|
# pgdb uses pyformat. is that fixed or an option?
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
# mysql bindings
|
# mysql bindings
|
||||||
import MySQLdb
|
import MySQLdb
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
class Database:
|
class Database:
|
||||||
def __init__(self, c, db_name, game):
|
def __init__(self, c, db_name, game):
|
||||||
|
|
|
@ -38,7 +38,7 @@ import os
|
||||||
import thread
|
import thread
|
||||||
import Queue
|
import Queue
|
||||||
|
|
||||||
errorfile = open('HUD-error.txt', 'w')
|
errorfile = open('HUD-error.txt', 'w', 0)
|
||||||
sys.stderr = errorfile
|
sys.stderr = errorfile
|
||||||
|
|
||||||
# pyGTK modules
|
# pyGTK modules
|
||||||
|
|
|
@ -18,8 +18,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
errorfile = open('fpdb-error.log', 'w')
|
errorFile = open('fpdb-error.log', 'w', 0)
|
||||||
sys.stderr = errorfile
|
#errorFileObject = os.fdopen(errorFile)#, 'w', int(1))
|
||||||
|
sys.stderr = errorFile
|
||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require('2.0')
|
pygtk.require('2.0')
|
||||||
|
@ -420,7 +421,7 @@ This program is licensed under the AGPL3, see docs"""+os.sep+"agpl-3.0.txt")
|
||||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||||
self.window.connect("delete_event", self.delete_event)
|
self.window.connect("delete_event", self.delete_event)
|
||||||
self.window.connect("destroy", self.destroy)
|
self.window.connect("destroy", self.destroy)
|
||||||
self.window.set_title("Free Poker DB - version: alpha5, p109")
|
self.window.set_title("Free Poker DB - version: alpha6, p111")
|
||||||
self.window.set_border_width(1)
|
self.window.set_border_width(1)
|
||||||
self.window.set_size_request(1020,400)
|
self.window.set_size_request(1020,400)
|
||||||
self.window.set_resizable(True)
|
self.window.set_resizable(True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user