[Modeling-cvs] ProjectModeling/Modeling PyModel.py,1.9,1.10
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-09-06 19:05:55
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28028/Modeling Modified Files: PyModel.py Log Message: Fixed bug #1023234: PyModel fails to validate to-many relationships in associations where the upper bound is a finite number Index: PyModel.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/PyModel.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PyModel.py 20 Jul 2004 06:21:37 -0000 1.9 --- PyModel.py 6 Sep 2004 19:05:44 -0000 1.10 *************** *** 844,848 **** if sd_mult[1]>1: raise ValueError, 'invalid multiplicity src->dst: should be toOne' ! if not (ds_mult[1] in (None, '*', -1) or ds_mult[0]>1): raise ValueError, 'invalid multiplicity dst->src: should be toMany' return sd_mult, ds_mult --- 844,848 ---- if sd_mult[1]>1: raise ValueError, 'invalid multiplicity src->dst: should be toOne' ! if not (ds_mult[1] in (None, '*', -1) or ds_mult[1]>1): raise ValueError, 'invalid multiplicity dst->src: should be toMany' return sd_mult, ds_mult |