Question: is there an equivalent > > db().select(db.blog.author) in pymongo api? For example if I use the above > implementation in pymongo: > > db1.blog.author (wouldn’t work). But I can get specific author > db1.blog.find({‘author’:’Ron’}) That is also equivalent to: > > db(db.blog.author == ‘Ron’).select() #In DAL >
There cannot be any equivalent since pymongo can't output Rows resultsets (web2py objects) > So, there is two way to go about it. I know some of pymongo syntax > wouldn't apply to DAL as there are no sql equivalent to it. How is it the > other way around? > What do you mean by "how is it the other way around"? web2py's DAL and pymongo have different purposes -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.