[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5721 - trunk/gnue-common/src/schema
From: |
johannes |
Subject: |
r5721 - trunk/gnue-common/src/schema |
Date: |
Thu, 15 Apr 2004 09:13:11 -0500 (CDT) |
Author: johannes
Date: 2004-04-15 09:13:10 -0500 (Thu, 15 Apr 2004)
New Revision: 5721
Modified:
trunk/gnue-common/src/schema/Objects.py
Log:
Don't check constraint references of non-existing tables
Modified: trunk/gnue-common/src/schema/Objects.py
===================================================================
--- trunk/gnue-common/src/schema/Objects.py 2004-04-15 14:09:57 UTC (rev
5720)
+++ trunk/gnue-common/src/schema/Objects.py 2004-04-15 14:13:10 UTC (rev
5721)
@@ -161,7 +161,8 @@
"""
table = self.__findTable (tablename)
if table is None:
- raise Exception (_("Cannot find table '%s'") % tablename)
+ # if the table is not available in the GSD we assume it's ok
+ return
tbFields = table.findChildrenOfType ('GSField', True, True)
@@ -191,6 +192,10 @@
csTable = self.__findTable ()
rfTable = self.__findTable (refFields [0].table)
+ # if the referenced table is not available in the gsd, we assume it's ok
+ if rfTable is None:
+ return
+
rfFields = {}
myFields = {}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5721 - trunk/gnue-common/src/schema,
johannes <=