berry
unread,May 25, 2012, 9:29:58 AM5/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to buzhug
what's the way to select by a field that's in another table?
parent_db= Base('t1').create( ('child_name', str) )
child_db= Base('t2').create( ('parent_name', str), ('parent',
parent_db ) )
parent_db.insert( name='jean')
parent_db.insert( name='jacques')
parent_db.insert( name='paul')
parent_db.insert( name='philip')
parent_db.insert( name='anne')
parent_db.insert( name='marie')
child_db.insert(name='itsik', parent_db[3] )
children = child_db.select( ['name'], parent=parent_db[3] ) ----> Got
en Error:
ValueError: If argument is a list, only 2 values should be
passed (found 3)
is it a bug or is there another way to search in "lookup tables" ?