lekma
2007-01-14 11:26:18 UTC
Hi,
given the following extent:
class Lang(E.Entity):
base_code = f.string()
_index(base_code)
the following takes place in schevo shell env when i try to build a
query:
schevo_test # schevo shell test.db
Schevo 3.0b4dev-r2831 :: Python Shell
Opened database test.db
Python 2.4.3 (#1, Sep 27 2006, 10:43:07)
[GCC 4.1.1 (Gentoo 4.1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
File "schevo/query.py", line 43, in __str__
return str(unicode(self))
File "schevo/query.py", line 386, in __unicode__
field.set(value)
File "schevo/field.py", line 302, in set
msg = '%s field is readonly and cannot be changed on %s %r' % (
File "schevo/query.py", line 43, in __str__
return str(unicode(self))
File "schevo/query.py", line 386, in __unicode__
field.set(value)
File "schevo/field.py", line 302, in set
msg = '%s field is readonly and cannot be changed on %s %r' % (
RuntimeError: maximum recursion depth exceeded
is this a bug, or am i missing something (i'm following the example at
http://schevo.org/trac/wiki/SchevoPublicApi#match-queries)?
the Lang extent holds 185000 entities (i'm testing performances), maybe
it's relevant.
thanks for any help
lekma
given the following extent:
class Lang(E.Entity):
base_code = f.string()
_index(base_code)
the following takes place in schevo shell env when i try to build a
query:
schevo_test # schevo shell test.db
Schevo 3.0b4dev-r2831 :: Python Shell
Opened database test.db
Python 2.4.3 (#1, Sep 27 2006, 10:43:07)
[GCC 4.1.1 (Gentoo 4.1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
db.Lang.find()[0].base_code
'lg'Q = db.Q
langs_en = Q.Match(db.Lang, 'base_code', 'startswith', 'en')
langs_en()
...(tons of tracebacks (path stripped for lisibility))...langs_en = Q.Match(db.Lang, 'base_code', 'startswith', 'en')
langs_en()
File "schevo/query.py", line 43, in __str__
return str(unicode(self))
File "schevo/query.py", line 386, in __unicode__
field.set(value)
File "schevo/field.py", line 302, in set
msg = '%s field is readonly and cannot be changed on %s %r' % (
File "schevo/query.py", line 43, in __str__
return str(unicode(self))
File "schevo/query.py", line 386, in __unicode__
field.set(value)
File "schevo/field.py", line 302, in set
msg = '%s field is readonly and cannot be changed on %s %r' % (
RuntimeError: maximum recursion depth exceeded
is this a bug, or am i missing something (i'm following the example at
http://schevo.org/trac/wiki/SchevoPublicApi#match-queries)?
the Lang extent holds 185000 entities (i'm testing performances), maybe
it's relevant.
thanks for any help
lekma