i think it should be ok to use dots after a var in brackets.... For
example, I can do this, and all is fine:
def select(self,tbl,var):
db= self.db
for mTbl in db.tables:
if tbl in mTbl:
if mTbl.startswith(tbl):
for row in db(db[mTbl].name==var).select():
if row.name == var:
return row.value
Mart :)
On Feb 22, 10:48 am, Ross Peoples <[email protected]> wrote:
> something like this should work:
>
> my_object = db(db[table_name]['id']==my_id).select().first()
>
> If you use brackets instead of dot notation for table names, you may not be
> able to use dot notation for the field name. I don't know for sure, but
> instead of doing this:
>
> db[key].id
>
> Try this instead:
>
> db[key]['id']
>
> I'm new to all of this, so I hope this helps.