Re: [web2py] Convert MongoDB / dict into a DAL Row

2014-11-14 Thread António Ramos
Never used mongo but what happens if you assign row.gender to a var ? 2014-11-14 16:55 GMT+00:00 Francisco Costa : > Hi, > > I'm unable to fully convert a dict into a Row(), specially if there is a > foreign key (ObjectId) > > I have the following code (I've commented the prints): > > db = DAL(

[web2py] Convert MongoDB / dict into a DAL Row

2014-11-14 Thread Francisco Costa
Hi, I'm unable to fully convert a dict into a Row(), specially if there is a foreign key (ObjectId) I have the following code (I've commented the prints): db = DAL( 'mongodb://localhost/%s' % request.application, pool_size=10, adapter_args={'safe': False}, check_reserved=['all']