On Tuesday, May 10, 2011 4:01:34 PM UTC-4, james c. wrote: > > I am having trouble with a key exception error. The problem is > occuring when the controller tries to read a database defined earlier > in the controller. The Error Message is occurring here: > > company_name = 'BIGkittyBIG' > company_accounts_db = company_name + '_accounts_' + > str(auth.user_id) > rows = db(db[company_accounts_db].name != None).select()
db[company_accounts_db] is expecting a db table with the name company_accounts_db -- but in your code, it doesn't look like you defined such a table. To do so, you would need db.define_table(company_accounts_db, ...) somewhere. Anthony

