[cig-commits] r6173 - cs/spatialdata-0.1/trunk/spatialdata/spatialdb/generator

brad at geodynamics.org brad at geodynamics.org
Sun Mar 4 16:32:23 PST 2007


Author: brad
Date: 2007-03-04 16:32:23 -0800 (Sun, 04 Mar 2007)
New Revision: 6173

Modified:
   cs/spatialdata-0.1/trunk/spatialdata/spatialdb/generator/Shaper.py
Log:
Moved checking of dbValue from _configure() to initialize() (interferes with getting help).

Modified: cs/spatialdata-0.1/trunk/spatialdata/spatialdb/generator/Shaper.py
===================================================================
--- cs/spatialdata-0.1/trunk/spatialdata/spatialdb/generator/Shaper.py	2007-03-04 23:30:29 UTC (rev 6172)
+++ cs/spatialdata-0.1/trunk/spatialdata/spatialdb/generator/Shaper.py	2007-03-05 00:32:23 UTC (rev 6173)
@@ -80,6 +80,10 @@
     """
     Initialize shaper.
     """
+    if self.dbValue == "":
+      raise ValueError, \
+            "Name of value in spatial database must be set for shaper '%s'." %\
+            self.name
     self.db.initialize()
     self.db.open()
     return
@@ -127,10 +131,6 @@
     Setup members using inventory.
     """
     Component._configure(self)
-    if self.inventory.dbValue == "":
-      raise ValueError, \
-            "Name of value in spatial database must be set for shaper '%s'." %\
-            self.name
     self.dbValue = self.inventory.dbValue
     self.operand = self.inventory.operand
     self.db = self.inventory.db



More information about the cig-commits mailing list