Thanks. I decided to rename it permanently. No issues so far.

On Apr 19, 9:19 pm, Massimo Di Pierro <[email protected]>
wrote:
> pretty sure this is not a python keyword, not a web2py keyword, not
> unsed internally and not a sqlite reserved keyword.
>
> I cannot tell what the problem is without seeing the code.
>
> On Apr 19, 7:46 am, niknok <[email protected]> wrote:
>
>
>
>
>
>
>
> > >From the ticket:
>
> > Traceback (most recent call last):
> >   File "/home/nrg/Projects/web2py/gluon/restricted.py", line 188, in 
> > restricted
> >     exec ccode in environment
> >   File "/home/nrg/Projects/web2py/applications/bbc/models/db_donor.py", 
> > line 419, in <module>
> >     initializer.fillup(db)
> >   File "applications/bbc/modules/initializer.py", line 5, in fillup
> >     if not db(db.release_version.id>0).count():
> >   File "/home/nrg/Projects/web2py/gluon/dal.py", line 3904, in __getattr__
> >     return self[key]
> >   File "/home/nrg/Projects/web2py/gluon/dal.py", line 3898, in __getitem__
> >     return dict.__getitem__(self, str(key))
> > KeyError: 'race'
>
> > For the life of me, I couldn't find a reference to "race" in the model
> > file db_donor.py or the module initializer.py. I used the term in
> > another model, but that model is working fine.
>
> > Out of desperation, I renamed all references to "race" in my code and
> > behold, the error disappeared. Renamed it back to "race" and I get the
> > error again.
>
> > Is "race" a reserved word? I'm using sqlite.

Reply via email to