commit-gnue
[Top][All Lists]
Advanced

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

gnue/gnue-common/src GClientApp.py GLoginHandle...


From: Jason Cater
Subject: gnue/gnue-common/src GClientApp.py GLoginHandle...
Date: Sun, 05 Aug 2001 09:37:49 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Branch:         gnuef-new-datasources
Changes by:     Jason Cater <address@hidden>    01/08/05 09:37:49

Modified files:
        gnue-common/src: GClientApp.py GLoginHandler.py 

Log message:
        misc fixes

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GClientApp.py.diff?cvsroot=OldCVS&only_with_tag=gnuef-new-datasources&tr1=1.9&tr2=1.9.2.1&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GLoginHandler.py.diff?cvsroot=OldCVS&only_with_tag=gnuef-new-datasources&tr1=1.2&tr2=1.2.2.1&r1=text&r2=text

Patches:
Index: gnue/gnue-common/src/GClientApp.py
diff -u gnue/gnue-common/src/GClientApp.py:1.8 
gnue/gnue-common/src/GClientApp.py:1.9
--- gnue/gnue-common/src/GClientApp.py:1.8      Fri Jun  1 12:56:06 2001
+++ gnue/gnue-common/src/GClientApp.py  Mon Jun  4 20:23:39 2001
@@ -35,8 +35,8 @@
 import string 
 import os
 import GConnections
+import GConfig
 
-
 class GClientApp:  
 
   # Attributes to be overwritten by subclasses
@@ -61,9 +61,8 @@
 
 
 
-
-  def __init__(self, connections=None): 
 
+  def __init__(self, connections=None, application=None): 
     # format of COMMAND_OPTIONS and _base_options: 
     #  [option, option] where option is: 
     #       [dictionary key name, short option, long option, 
@@ -144,7 +143,10 @@
     GDebug.printMesg(1,"Run Options: %s" % opt)
     GDebug.printMesg(1,"Run Arguments: %s" % self.ARGUMENTS)
 
-   
+    # Read the config files
+    if application:
+      GConfig.GConfig(application)
+       
     # Get the connection definitions
     if connections != None: 
       self.connections = Connections
Index: gnue/gnue-common/src/GLoginHandler.py
diff -u gnue/gnue-common/src/GLoginHandler.py:1.1 
gnue/gnue-common/src/GLoginHandler.py:1.2
--- gnue/gnue-common/src/GLoginHandler.py:1.1   Mon May 14 14:59:59 2001
+++ gnue/gnue-common/src/GLoginHandler.py       Tue May 15 08:16:38 2001
@@ -30,8 +30,16 @@
 # HISTORY:
 #
 
-class LoginHandler: 
 
+#
+# If user stops the login process (cancel button?), raise this exception
+#
+class UserCanceledLogin(Exception): 
+  pass
+
+
+
+class LoginHandler: 
   #
   # getLogin is passed an list consisting of: 
   #   Connection Name



reply via email to

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