commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r7830 - trunk/gnue-common/src/datasources


From: reinhard
Subject: [gnue] r7830 - trunk/gnue-common/src/datasources
Date: Fri, 12 Aug 2005 09:54:32 -0500 (CDT)

Author: reinhard
Date: 2005-08-12 09:54:31 -0500 (Fri, 12 Aug 2005)
New Revision: 7830

Modified:
   trunk/gnue-common/src/datasources/readgsd.py
Log:
Fixed import of StartupError.


Modified: trunk/gnue-common/src/datasources/readgsd.py
===================================================================
--- trunk/gnue-common/src/datasources/readgsd.py        2005-08-12 14:51:18 UTC 
(rev 7829)
+++ trunk/gnue-common/src/datasources/readgsd.py        2005-08-12 14:54:31 UTC 
(rev 7830)
@@ -29,7 +29,7 @@
 import sets
 import datetime
 
-from gnue.common.apps import errors, GClientApp
+from gnue.common.apps import errors, GBaseApp, GClientApp
 from gnue.common.datasources import GSchema, GDataSource, GConditions
 from gnue.common.utils.FileUtils import openResource
 from gnue.common.utils import GDateTime
@@ -201,7 +201,7 @@
   def __checkOptions (self):
 
     if not self.ARGUMENTS:
-      raise StartupError, u_("No input file specified.")
+      raise GBaseApp.StartupError, u_("No input file specified.")
 
     try:
       self._files = []
@@ -210,14 +210,14 @@
         self._files.append (openResource (filename))
 
     except IOError:
-      raise StartupError, \
+      raise GBaseApp.StartupError, \
           u_("Unable to open input file: %s") % errors.getException () [2]
 
 
     self.outfile = self.OPTIONS ['output']
 
     if self.OPTIONS ['file-only'] and self.outfile is None:
-      raise StartupError, \
+      raise GBaseApp.StartupError, \
           u_("Output to file only requested, but no filename specified.")
 
     self.__doSchema = self.OPTIONS ['mode'].lower () in ['both', 'schema']
@@ -225,7 +225,7 @@
                           not self.OPTIONS ['file-only']
 
     if not (self.__doSchema or self.__doData):
-      raise StartupError, \
+      raise GBaseApp.StartupError, \
           u_("Mode of operation must be one of 'both', 'schema' or 'data'.")
 
     cName = self.OPTIONS ['connection']





reply via email to

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