p111 - Database.py now works without unnecessary db libs. Configuration.py made executable. stderr now unbuffered.

This commit is contained in:
steffen123 2008-10-04 19:03:02 +01:00
parent 4b432d7ccd
commit f1947bb6cb
5 changed files with 16 additions and 7 deletions

View File

@ -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.
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.
check we're reading mucked cards from PS
@ -39,6 +39,8 @@ Many STTs won't import
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)
graphs for SD/F, W$wSF, W$@SD
validate webpage

0
pyfpdb/Configuration.py Normal file → Executable file
View File

View File

@ -33,11 +33,17 @@ import Configuration
import SQL
# pgdb database module for posgres via DB-API
try:
import psycopg2
# pgdb uses pyformat. is that fixed or an option?
except:
pass
try:
# mysql bindings
import MySQLdb
except:
pass
class Database:
def __init__(self, c, db_name, game):

View File

@ -38,7 +38,7 @@ import os
import thread
import Queue
errorfile = open('HUD-error.txt', 'w')
errorfile = open('HUD-error.txt', 'w', 0)
sys.stderr = errorfile
# pyGTK modules

View File

@ -18,8 +18,9 @@
import os
import sys
errorfile = open('fpdb-error.log', 'w')
sys.stderr = errorfile
errorFile = open('fpdb-error.log', 'w', 0)
#errorFileObject = os.fdopen(errorFile)#, 'w', int(1))
sys.stderr = errorFile
import pygtk
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.connect("delete_event", self.delete_event)
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_size_request(1020,400)
self.window.set_resizable(True)