>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.