db[school_table_variable]

On Sunday, 23 December 2012 22:41:52 UTC, Alberto Plata wrote:
>
> I have a table,   db.define_table('schools', Field('school_name', 
> 'string')).  I've been adding data to the table by,    
> db.schools.update_or_insert(school_name = 'ABC High School'). 
> My question is... Is there anyway I can call my 'schools' table with a 
> variable?? As an example, when I try:
>
> school_table_variable = 'schools'
> db.school_table_variable.update_or_insert(school_name = 'ABC High School')
>
> The program crashes. Is there a way around this?
>

-- 



Reply via email to