tag:blogger.com,1999:blog-18508356.post127279402870961053..comments2026-02-13T11:24:21.556-05:00Comments on Just a little Python: Declarative Schemas for MongoDB in Python using MingRick Copelandhttp://www.blogger.com/profile/11612114223288841087noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-18508356.post-41117713749116607842012-12-10T13:42:08.959-05:002012-12-10T13:42:08.959-05:00Hi Nico,
Thanks for the comment! I believe that t...Hi Nico,<br /><br />Thanks for the comment! I believe that the MongoDB-Ming package may be out of date -- I don't know who's responsible for doing that packaging work. The most up-to-date version of Ming is always available from sf.net/p/merciless<br /><br />-RickRick Copelandhttps://www.blogger.com/profile/11612114223288841087noreply@blogger.comtag:blogger.com,1999:blog-18508356.post-50477115263362461332012-12-10T07:15:37.730-05:002012-12-10T07:15:37.730-05:00In my first experiments with Ming I ran into two p...In my first experiments with Ming I ran into two problems. The first one was a conflict with another Python package called Ming, which is used to generate SWF files. I installed this with apt-get on my Ubuntu-based system thinking I was installing the Ming discussed here.<br /><br />After uninstalling SWF-Ming, and installing the MongoDB-Ming I got an error on the line <br /><br />from pymongo.son import SON<br /><br />in session.py. When I replaced this with <br /><br />from bson.son import SON<br /><br />I could continue my first test. Is there some version dependency between Ming and the Python driver for MongoDB?Nico Poppeliernoreply@blogger.comtag:blogger.com,1999:blog-18508356.post-28667508160695963522012-06-20T10:42:42.926-04:002012-06-20T10:42:42.926-04:00There are actually a few other attributes besides ...There are actually a few other attributes besides `m` that we might want to consider moving into the manager: from_bson, make, make_safe. I remembered make, since it tripped me up once and is documented at http://merciless.sourceforge.net/tour.html#using-ming-objects-to-represent-mongo-records. Found the rest via `set(dir(WikiPage))-set(dir(dict))`Dave Brondsemahttp://brondsema.net/noreply@blogger.com