>
> Row.__str__ is called which in turn calls Row.as_dict, well Row.as_dict 
> does not know how to serialize ObjectId so it just ignores it.
>

I don't recall exactly (perhaps I should check the source), but I think the 
mongodb adapter doesn't support dealing with pure objectid objects for 
database I/O. What it does is always convert from/to long integers because 
objectid objects are mapped to web2py db record ids. So, you should not be 
able to work with objectid instances and DAL unless you only store and 
retrieve id values.

@Francisco: about your question on cache not working with mongo, I wouldn't 
say, maybe there is a bug in the adapter. AFAIK the caching of rows on 
selects should work with mongodb as well.

-- 
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.

Reply via email to