Dear web2py experts,
I would like to use MongoDB+w2p for my current task which might make my 
life a lot easier.
The only examples I have found are:
http://www.web2pyslices.com/slice/show/1580/save-the-earth-from-a-total-data-mess-with-mongodbadapter
http://stackoverflow.com/questions/21674013/can-mongodbs-embedded-documents-be-modeled-in-web2py-dal

It would be much nicer to use pymongo capabilities though. I wonder how to 
use pymongo and DAL together? Can I use following pymango query operators 
directly from DAL, and if so what is the syntax:
Query Operators: find, sort, find_one
Update Operator: set, unset, push, pop and etc?

it was implemented in Flask already (
http://flask-pymongo.readthedocs.org/en/latest/), I guess it should be 
available in w2p
If not what would be the way to deal with MongoDB using DAL and pymongo 
together?

For example, how to query nested json (see below) in mongoDB document using 
mango operator\function rather than simple loop? 
name: "Joe Bookreader",
addresses: [
{
street: "123 Fake Street",
city: "Faketon",
state: "MA",
zip: "12345"
},

{
street: "1 Some Other Street",
city: "Boston",
state: "MA",
zip: "12345"
}
]

What would be the way to embed and remove document in\from the existing 
mangoDB document using DAL?
Is there any links with more examples on how to marriage pymongo with DAL 
or web2py?
Also it would be nice to see comparison between DAL and other python 
alternatives like MongoEngine.

Thank a lot in advance.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to