Ming is an Object Document Mapper for the python/mongodb. It facilitates the mapping of MongoDB documents to Python objects, and offers the ability to enforce and or validate the documents that are put into MongoDB.
Questions tagged [ming]
28 questions
0
votes
0 answers
How to configure mingw to search libs?
I'm trying to compile my program for windows, i'm using mingw
i686-w64-mingw32-gcc Pagina_inicial.c -o Pagina_inicial `pkg-config --libs --cflags gtk+-2.0 mysqlclient`
but only the --cflags was find, the --libs does ld return…

Calisto
- 46
- 1
- 4
0
votes
0 answers
How do I pass the session object of a ThreadLocalODMSession to a class defined in another python file?
I hope I can explain this issue correctly.
I want to define the ThreadLocalODMSession object in one python file, and have defined several other files with the classes that represent the mongo collection. But the sample source code for ming always…

Ronaldo Nascimento
- 1,571
- 3
- 21
- 40
0
votes
1 answer
Ming ODM MappedClass json conversion
How do I convert a MappedClass object to JSON?
json.dumps({"data": mappedClassObject}, indent=True)
Above code raises error that MappedClass object is not JSON serializable.
Is there any utility similar to BSON's json_util to convert MappedClass…

suman j
- 6,710
- 11
- 58
- 109
0
votes
1 answer
How to setup Mingw32 with dwimperl
I installed dwimperl in windows and I want to use it with mingw32 command line.
In mingw32 there is perl version 5.8.x but i want to use perl 5.14 from mingw32. Any ideas how can i solve this problem?

Cospel
- 493
- 1
- 14
- 32
0
votes
1 answer
Is modeling relationships in MongoDB using an ODM (Ming) an Anti-Pattern?
I'm interested in using Ming to model my 100+ GB data set which is largely non-relational data (signals measured in a lab) with some "relational" meta-data (e.g. experiment name) in MongoDB. This is not a question about whether or not I should be…

Charlie
- 2,004
- 6
- 20
- 40
0
votes
1 answer
ming extensions before_insert not creating new objects
I am trying to insert a new Role or Roles that are required for a new User that is being created. But for some reason the roles are not created. Any idea why the role is not created but the User is? The session shows the Role in
class…

slik
- 5,001
- 6
- 34
- 40
0
votes
1 answer
Testing mongodb using mings mim (mongo in memory)
I want to test my new created models in ming but haven’t been very successful at making the mock happen what am I missing.
The model
from ming import Field, schema
from ming.declarative import Document
bind = create_datastore('test')
…

user1634074
- 681
- 8
- 17
0
votes
1 answer
How to set a TTL index using Ming?
I'm trying to ensure that my collection expires documents older than 2 weeks using the ming ODM mapper:
class SloData(MappedClass):
class __mongometa__:
session = session
name = 'slo_data'
indexes = ['application']
…

Chris Matta
- 3,263
- 3
- 35
- 48
0
votes
0 answers
ming 0.4.2 compilation errors on Ubuntu 12.04 when installing from source code
I am trying to install ming 0.4.2 from source code and it was compilable before on Ubuntu 10.04, but now it' giving following compilation errors when I try to install using command sudo make install (libpng is already installed).
/bin/bash…

gmuhammad
- 1,434
- 4
- 25
- 39
0
votes
1 answer
Using GridFS with Ming ODM in Turbogears
Ming supports GridFS start from 0.3 version, and i've used it in several Turbogears apps so far, but can't find any documentation of how to use GridFS with Ming,
This is what i've done so far, in my model store.py module :
#import…

panjiesw
- 156
- 1
- 12
0
votes
2 answers
WSGI post-process cleanup
I'm running a TurboGears app with mod_wsgi and apache, using pymongo wrapped with Ming for persistence. To failproof and scale my app I was interested in using mongo's support for replica sets through a pymongo ReplicaSetConnection.
However, as…

Will
- 4,498
- 1
- 21
- 20
0
votes
1 answer
How to map a custom type in Ming ODM?
I'm in the process of setting up a mapping in Ming ODM. One issue that has come up is how to map a custom type to a field, and how to pass that custom type into .query
Basically, I have an object to represent a Customer ID. I'd like the…

kbluck
- 11,530
- 4
- 25
- 25
-5
votes
1 answer
showing cannot open output file a.exe: Permission denied in visual studio
[earlier it was working fine in the same folder but now its not working , i restarted the pc also the also
any help will be great][1]