[Zope3-checkins] CVS: Packages3/workflow/stateful - instance.py:1.11

Ulrich Eck ueck@net-labs.de
Thu, 27 Mar 2003 10:12:41 -0500


Update of /cvs-repository/Packages3/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv26513/stateful

Modified Files:
	instance.py 
Log Message:
fixed bug for empty schema spec


=== Packages3/workflow/stateful/instance.py 1.10 => 1.11 ===
--- Packages3/workflow/stateful/instance.py:1.10	Wed Mar 26 16:10:59 2003
+++ Packages3/workflow/stateful/instance.py	Thu Mar 27 10:12:40 2003
@@ -81,11 +81,11 @@
 
         # resolve schema class 
         schema = clean_pd.getRelevantDataSchema()
-        if type(schema) in StringTypes:
-            sm = getServiceManager(self)
-            schema =  sm.resolve(schema)
-
         if schema:
+            if type(schema) in StringTypes:
+                sm = getServiceManager(self)
+                schema =  sm.resolve(schema)
+
             # create relevant-data
             self._data = self._buildRelevantData(schema)
         else: