Hi, I want to generate a table like this:
db.define_table(objects[i], SQLField(locus), SQLField(before) SQLField(after) SQLField(name) SQLField(main_name) ...with a code similar to this : objects = ['substance', 'process', 'condition'] linksubobjects = ['locus', 'before', 'after'] unlinksubobjects = ['name', 'main_name'] for i in range(len(objects)): db.define_table(objects[i], for k in range(len(linksubobjects[k])): SQLField([linksubobjects[k]]), for l in range(len(unlinksubobjects)): SQLField([unlinksubobjects[l]]), ) ...but I get errors on the "k" and "l" loops. Does anyone have an idea how to make these loops work? Thanks in advance for help!