[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src/forms/wizards CreateSchema.py
From: |
Jan Ischebeck |
Subject: |
gnue/designer/src/forms/wizards CreateSchema.py |
Date: |
Wed, 24 Jul 2002 16:55:17 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jan Ischebeck <address@hidden> 02/07/24 16:55:17
Modified files:
designer/src/forms/wizards: CreateSchema.py
Log message:
fixing wrong indentation bug
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/wizards/CreateSchema.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gnue/designer/src/forms/wizards/CreateSchema.py
diff -c gnue/designer/src/forms/wizards/CreateSchema.py:1.3
gnue/designer/src/forms/wizards/CreateSchema.py:1.4
*** gnue/designer/src/forms/wizards/CreateSchema.py:1.3 Wed Jul 24 11:23:36 2002
--- gnue/designer/src/forms/wizards/CreateSchema.py Wed Jul 24 16:55:16 2002
***************
*** 165,179 ****
self.fieldlistoftable[string.lower(obj.name)]=fields
#print "add table '%s'" % obj.table
# check for masterlink
! if hasattr(obj,'master'):
! #print "MASTER: %s " % obj.master
! # get the datasource for that
! if hasattr(obj,'masterlink'):
! #print "MASTERLINK: %s " % obj.masterlink
! # create a primary key out of that
! if hasattr(obj,'detaillink'):
! #print "DETAILLINK: %s " % obj.detaillink
! # create a foreign key out of that
newconstraint=GSConstraint(GSConstraints(newtable))
newconstraint.name="fk_%s_%s" % (obj.table,obj.detaillink)
newconstraint.type="foreignkey"
--- 165,174 ----
self.fieldlistoftable[string.lower(obj.name)]=fields
#print "add table '%s'" % obj.table
# check for masterlink
! if hasattr(obj,'master') and hasattr(obj,'masterlink') and \
! hasattr(obj,'detaillink'):
!
! # create a foreign key on this table
newconstraint=GSConstraint(GSConstraints(newtable))
newconstraint.name="fk_%s_%s" % (obj.table,obj.detaillink)
newconstraint.type="foreignkey"
***************
*** 187,193 ****
newfield = GSField(fields)
newfield.name=obj.detaillink
newfield.type='string'
!
else:
pass
--- 182,189 ----
newfield = GSField(fields)
newfield.name=obj.detaillink
newfield.type='string'
!
! # create a primary key on the master table (TODO)
else:
pass