[Modeling-cvs] ProjectModeling/Modeling QualifierParser.py,1.16,1.17
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-11-24 15:54:04
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11192/Modeling Modified Files: QualifierParser.py Log Message: Fixed bug #1032577: undetected syntax errors in qualifier strings Index: QualifierParser.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/QualifierParser.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** QualifierParser.py 20 Jul 2004 06:21:37 -0000 1.16 --- QualifierParser.py 24 Nov 2004 15:53:41 -0000 1.17 *************** *** 72,76 **** def trace(msg, *args): ! #print msg%args pass --- 72,79 ---- def trace(msg, *args): ! #if args: ! # print msg%args ! #else: ! # print msg pass *************** *** 234,237 **** --- 237,249 ---- self.rv.append(Token(type='comma')) + def t_zz_error(self, s): + r' .* ' + raise ValueError, "Syntax Error: %s"%s + # TBD Implementation note: + # TBD this is needed to detect the case where not all the string is parsed + # TBD such as in: 'name like "you" AND isActive=1' which is NOT detected + # TBD as a syntax error otherwise + + #def t_simplekeypath(self, s): # r' \c+ ' |