John Lenton
2004-04-15 19:20:20 UTC
Sender: John Lenton <***@martina.fsl.org.ar>
Hi there, long time no see :)
First, sorry for my delay with the cimarron example. I've had to stop
working on cimarron for a while...
Now I'm working with Modeling in zope, and I seem to have come across
a bug... and I'm hoping there's an easy fix (or that it's already
fixed and I've just not seen it on sourceforge :p).
$ python
Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/Modeling/EditingContext.py", line 1413, in fetch
qualifier=qualifierWithQualifierFormat(qualifier)
File "/usr/lib/python2.3/site-packages/Modeling/Qualifier.py", line 129, in qualifierWithQualifierFormat
return QualifierParser.qualifierWithQualifierFormat(expression)
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 550, in qualifierWithQualifierFormat
_parse=parse(sc)
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 417, in parse
return parser.parse(tokens)
File "/usr/lib/python2.3/site-packages/spark.py", line 204, in parse
self.error(tokens[i-1])
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 261, in error
raise ValueError, "Syntax error near token: `%s'" % token
ValueError: Syntax error near token: `<Token OR>'
actually there's the same problem with any token: OR, AND, IN, or
NOT. Is this a known problem in spark? is my spark version wrong?
spark is 0.6.1, Modeling is 0.9-pre-16-patch892454.
Hi there, long time no see :)
First, sorry for my delay with the cimarron example. I've had to stop
working on cimarron for a while...
Now I'm working with Modeling in zope, and I seem to have come across
a bug... and I'm hoping there's an easy fix (or that it's already
fixed and I've just not seen it on sourceforge :p).
$ python
Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from Modeling.EditingContext import EditingContext
ec=EditingContext()
ec.fetch('foo', 'orbit > 3')
Traceback (most recent call last):ec=EditingContext()
ec.fetch('foo', 'orbit > 3')
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/Modeling/EditingContext.py", line 1413, in fetch
qualifier=qualifierWithQualifierFormat(qualifier)
File "/usr/lib/python2.3/site-packages/Modeling/Qualifier.py", line 129, in qualifierWithQualifierFormat
return QualifierParser.qualifierWithQualifierFormat(expression)
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 550, in qualifierWithQualifierFormat
_parse=parse(sc)
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 417, in parse
return parser.parse(tokens)
File "/usr/lib/python2.3/site-packages/spark.py", line 204, in parse
self.error(tokens[i-1])
File "/usr/lib/python2.3/site-packages/Modeling/QualifierParser.py", line 261, in error
raise ValueError, "Syntax error near token: `%s'" % token
ValueError: Syntax error near token: `<Token OR>'
actually there's the same problem with any token: OR, AND, IN, or
NOT. Is this a known problem in spark? is my spark version wrong?
spark is 0.6.1, Modeling is 0.9-pre-16-patch892454.
--
John Lenton (***@vialibre.org.ar) -- Random fortune:
Teme a la vejez, pues nunca viene sola.
-- Platón. (427-347 a.C.) Filósofo griego.
John Lenton (***@vialibre.org.ar) -- Random fortune:
Teme a la vejez, pues nunca viene sola.
-- Platón. (427-347 a.C.) Filósofo griego.