Paul Robinson solved it by just inserted the dict from
connection['table'].find() in to an overridden parse function. I have to
figure out how he exactly did it, but I don't think it will take to long
before we have an experimental working mongodb adapter. I'll keep you all
posted.

Regards Mark,

-----Oorspronkelijk bericht-----
Van: [email protected] [mailto:[email protected]] Namens Alan
Etkin
Verzonden: zondag 4 december 2011 16:58
Aan: web2py-users
Onderwerp: [web2py] Re: Converting mongodb collection to row

Sorry for the repeated posts:

There is a a couple of mistakes in the last message.

> parse() DAL.BaseAdapter (wich is called by dal's instance .select()

parse() in called by the adapter instance

> method)  receives a rows argument (suposedly a dict returned by 
> ._select()?) and a colnames (a list of fields retrieved from the

the rows parse argument is a row dictionary sequence converted in a
enumerated sequence ((0, first_row_dict), ... (n, nth_row_dict))

I recommend you to follow the actual code, because this can be inaccurate

-----
Geen virus gevonden in dit bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 2012.0.1873 / Virusdatabase: 2102/4654 - datum van uitgifte:
12/03/11

Reply via email to