[Modeling-cvs] ProjectModeling/Modeling SQLExpression.py,1.16,1.17 CHANGES,1.86,1.87
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-03-17 12:43:25
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv12320 Modified Files: SQLExpression.py CHANGES Log Message: Fixed SQLExpression.sqlStringForAttributeNamed(): now raises ValueError with an explicit message when it receives an invalid attribute's name Index: SQLExpression.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/SQLExpression.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** SQLExpression.py 14 Mar 2003 11:40:10 -0000 1.16 --- SQLExpression.py 17 Mar 2003 12:43:21 -0000 1.17 *************** *** 945,948 **** --- 945,950 ---- description of what 'building the path' means). + Raises ValueError in case 'name' is not a valid attribute's name. + See also: sqlStringForAttribute, sqlStringForAttributePath() Attribute.isFlattened(), Attribute.relationshipPathObjects(), *************** *** 954,957 **** --- 956,961 ---- attribute=self.entity().attributeNamed(name) + if not attribute: + raise ValueError, "Unknown attribute '%s' for entity '%s'"%(name, self.entity().name()) if attribute.isDerived() and not attribute.isFlattened(): raise ValueError, "Error: attribute %s shouldn't be derived"%name Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** CHANGES 17 Mar 2003 11:53:49 -0000 1.86 --- CHANGES 17 Mar 2003 12:43:22 -0000 1.87 *************** *** 8,11 **** --- 8,15 ---- -------------------------------------------------------- + * Fixed SQLExpression.sqlStringForAttributeNamed(): now raises ValueError + with an explicit message when it receives an invalid attribute's name + + 0.9-pre-5 (2002/03/17) Project milestone -- no public release --------- |