commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnuef INSTALL src/GFForm.py src/GFObjects....


From: James Thompson
Subject: gnue/gnuef INSTALL src/GFForm.py src/GFObjects....
Date: Mon, 05 Feb 2001 17:21:11 -0800

CVSROOT:        /cvs
Module name:    gnue
Changes by:     James Thompson <address@hidden> 01/02/05 17:21:11

Modified files:
        gnuef          : INSTALL 
        gnuef/src      : GFForm.py GFObjects.py GFOptions.py 
                         UIwxpython.py 

Log message:
        Cleanups
        Added Dmitry Sorokin's hack for russian input support
        Database errors now check for during queries

CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/INSTALL.diff?r1=1.8&r2=1.9
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/src/GFForm.py.diff?r1=1.65&r2=1.66
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/src/GFObjects.py.diff?r1=1.57&r2=1.58
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/src/GFOptions.py.diff?r1=1.16&r2=1.17
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/gnuef/src/UIwxpython.py.diff?r1=1.57&r2=1.58

Patches:
Index: gnue/gnuef/INSTALL
diff -u gnue/gnuef/INSTALL:1.8 gnue/gnuef/INSTALL:1.9
--- gnue/gnuef/INSTALL:1.8      Wed Jan 31 11:16:29 2001
+++ gnue/gnuef/INSTALL  Mon Feb  5 17:21:10 2001
@@ -12,7 +12,7 @@
 a variety of user-interface libraries.
 
 Actually the only database systems supported are MySQL and
-PostgreSQL. Only the latter will be treated in this document.
+PostgreSQL. Additional docs need written involving MySQL support. 
 
 Also there is only one functional user-interface available at the time
 of writing via wxWindows. We will concentrate on the GTK Version of
@@ -31,9 +31,10 @@
 python-dev     The python interpreter and environment (1.5.2)
 libgtk1.2.7-devel Development files for the GIMP Toolkit needed for
                wxGTK. 
-postgresql-dev postgresql-devel Version 6.5.3-23 Header files for
-               libpq (postgresql library)  
 cvs            required for gnuef-"download".
+
+postgresql-dev  required is using PostgreSQL   
+python-mysqldb  required if using MySQL
 
 There will eventually be a bunch of dependend packages that will
 be installed automatically too.
Index: gnue/gnuef/src/GFForm.py
diff -u gnue/gnuef/src/GFForm.py:1.65 gnue/gnuef/src/GFForm.py:1.66
--- gnue/gnuef/src/GFForm.py:1.65       Mon Jan 29 19:31:00 2001
+++ gnue/gnuef/src/GFForm.py    Mon Feb  5 17:21:11 2001
@@ -333,8 +333,14 @@
     self.updateStatus()
     
   def executeQuery(self, event):
-    self.currentBlock.processQuery()
-    self.updateStatus()
+    try:
+      self.currentBlock.processQuery()
+      self.updateStatus()
+    except DBError:
+      for key in self.databaseDictionary.keys():
+        self.databaseDictionary[key].rollback()
+      message = GFMsgBox(self,"Database query error:\n%s\n%s " % 
(sys.exc_info()[0], sys.exc_info()[1]))
+      message.show()
 
   def executeCommit(self, event):
     for key in self.databaseDictionary.keys():
Index: gnue/gnuef/src/GFObjects.py
diff -u gnue/gnuef/src/GFObjects.py:1.57 gnue/gnuef/src/GFObjects.py:1.58
--- gnue/gnuef/src/GFObjects.py:1.57    Mon Jan 29 19:31:00 2001
+++ gnue/gnuef/src/GFObjects.py Mon Feb  5 17:21:11 2001
@@ -511,7 +511,7 @@
 
             for newkey in result.keys():
               self.resultSet[count][newkey] = result[newkey]
-              print newkey, self.resultSet[count][newkey]
+#              print newkey, self.resultSet[count][newkey]
               
       #self.dataConnection.commit()
 
Index: gnue/gnuef/src/GFOptions.py
diff -u gnue/gnuef/src/GFOptions.py:1.16 gnue/gnuef/src/GFOptions.py:1.17
--- gnue/gnuef/src/GFOptions.py:1.16    Mon Jan 29 13:35:26 2001
+++ gnue/gnuef/src/GFOptions.py Mon Feb  5 17:21:11 2001
@@ -34,4 +34,4 @@
 textPercentage = 100
 
 # Version
-VERSION = "0.0.5"
+VERSION = "0.0.6"
Index: gnue/gnuef/src/UIwxpython.py
diff -u gnue/gnuef/src/UIwxpython.py:1.57 gnue/gnuef/src/UIwxpython.py:1.58
--- gnue/gnuef/src/UIwxpython.py:1.57   Tue Jan 30 20:21:51 2001
+++ gnue/gnuef/src/UIwxpython.py        Mon Feb  5 17:21:11 2001
@@ -282,6 +282,11 @@
             action = GFEvent('requestHOTKEY',chr(event.KeyCode()))
           elif (32 <= event.KeyCode() <= 126):
             action = GFEvent('requestKEYPRESS',chr(event.KeyCode()))
+          # quick hack for for russian support from Dmitry Sorokin 
<address@hidden>
+          elif (1728 <= event.KeyCode() <= 1791):
+            offset = 1536
+            action = GFEvent('requestKEYPRESS',chr(event.KeyCode()-offset))
+                                    
     #
     # Mouse Events
     #
@@ -551,7 +556,6 @@
     eo = event.GetEventObject()
     object = wxPyTypeCast(eo, 'wxFrame')
     if event.CanVeto():
-      print "Dispatching exit event"
       self.dispatchEvent(GFEvent('requestEXIT'))
     else:
       object.Destroy()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]