FAQ

Search Discussions

42 discussions - 103 posts

  • Based on the MongoKit documentation, I define a nested structure use dictionary. But when saving the object, I got an error. Details are as below. Can you please kindly advise? Thanks class ...
    Deng X FengDeng X Feng
    Feb 26, 2014 at 10:52 pm
    Feb 26, 2014 at 10:52 pm
  • Hi, This email is a follow-up to a few questions and discussions that have taken place in this group. The most descriptive of then is by Shahaf Abileah, "Best practice for embedding an object in a ...
    Hervé MénagerHervé Ménager
    Dec 19, 2013 at 12:04 pm
    Dec 19, 2013 at 12:04 pm
  • Hey everyone, What's the recommended approach for embedding an object in a document? I'd like to define the structure of the embedded document in the same manner as the parent Document, to get the ...
    Shahaf AbileahShahaf Abileah
    Dec 6, 2013 at 9:22 am
    Dec 6, 2013 at 9:22 am
  • I want to know how to create a reflexive relation with members of the same class. class MetaType(Document): This gives a validation error. However, when I try to express relations to other classes ...
    GNGN
    Nov 6, 2013 at 3:41 pm
    Nov 22, 2013 at 8:19 am
  • Hello, I'm using GridFS to store small images (10kb ~ 20kb each), i've stored almost 15k of images, however i got a bad performance when tried to find them with "get_last_version(filename)" from my ...
    Heigler RochaHeigler Rocha
    Oct 8, 2013 at 6:48 am
    Oct 8, 2013 at 4:46 pm
  • Hi, I noticed a small error in the documentation: https://github.com/namlook/mongokit/wiki/Descriptors It mentions the "ValidatorError" but the actual class name is "ValidationError". It seems anyone ...
    Hervé MénagerHervé Ménager
    Sep 17, 2013 at 12:06 pm
    Sep 26, 2013 at 9:31 am
  • Hi, I have the pleasure to announce that I have registered MongoKit to travis-ci and all tests are passing again: Ran 272 tests in 19.666s This is great for the future of MongoKit. It means that you ...
    Nicolas ClaironNicolas Clairon
    Sep 5, 2013 at 1:24 pm
    Sep 5, 2013 at 1:24 pm
  • Just wondering if anyone is actively working on Python 3 support? -Chris -- --- You received this message because you are subscribed to the Google Groups "MongoKit" group. To unsubscribe from this ...
    Chris WjChris Wj
    Sep 3, 2013 at 5:40 am
    Sep 3, 2013 at 12:43 pm
  • Hi everyone, I have the plaisure to announce the release of v0.9.0. This version brings some bugfix, a pretty big refactorization and the replica set support. Please, note that this version require ...
    Nicolas ClaironNicolas Clairon
    Aug 7, 2013 at 2:48 pm
    Aug 7, 2013 at 2:48 pm
  • I have mongodb running on a remote server. I can ssh to the remote server and connect to mongodb from the shell on the remote machine. However i have to connect to that mongodb instance from my ...
    Максим ВащукМаксим Ващук
    Aug 7, 2013 at 1:01 pm
    Aug 7, 2013 at 3:57 pm
  • Hi Namlook, The recently merged pull request #127 is needed in order to for us to use the migrations that MongoKit provides. Is there any plan on releasing a new version of MongoKit soon? We'd like ...
    John BrodieJohn Brodie
    Jul 25, 2013 at 12:31 pm
    Aug 10, 2013 at 10:51 am
  • Hi, I know this thread is quite old. But I want to make something clear. Even if we store elements as str , does retrieving that element from db , return it as unicode? Thanks, -- --- You received ...
    Sukhitha jayathilakeSukhitha jayathilake
    Jun 27, 2013 at 8:14 am
    Jun 27, 2013 at 8:16 am
  • @connection.register class User(Document): __database__ = 'foo' __collection__ = 'bar' structure = { '_id' : ObjectId, 'Email' : basestring, } col = connection['uplace']['user'] user = col.find()[2] ...
    Kevin CarboneKevin Carbone
    Mar 18, 2013 at 10:06 pm
    Mar 19, 2013 at 8:56 am
  • Hi, I am currently trying to create a document with a pretty complex nested structure (named DocC for instance): - Some parts of the nested structure are exclusive to the document so I modelized them ...
    Hervé MénagerHervé Ménager
    Mar 18, 2013 at 2:53 pm
    Mar 19, 2013 at 8:48 am
  • Hi, I am currently trying to create a document with a pretty complex nested structure (named DocC for instance): - Some parts of the nested structure are exclusive to the document so I modelized them ...
    Hervé MénagerHervé Ménager
    Mar 18, 2013 at 2:53 pm
    Mar 18, 2013 at 2:53 pm
  • How to specify the field "data" to be required? structure = { "items": [ { "id": int, "data": unicode, } ], } required_fields = ["items.data"] # This doesn't work ...
    Daniel Rodriguez del Villar TrimarchiDaniel Rodriguez del Villar Trimarchi
    Mar 17, 2013 at 1:16 pm
    Mar 17, 2013 at 1:16 pm
  • It doesn't work: connection.Members.update({ '_id' : user_id }, { '$push' : { 'follow' : member_id }}) Error: TypeError: update expected at most 1 arguments, got 2 But it does work (not using Members ...
    Perry DuPerry Du
    Mar 8, 2013 at 8:39 am
    Mar 8, 2013 at 8:39 am
  • Hi, I face frequent errors when querying a table in mongo that has not yet been filled. I can catch errors of source but this is a bit annoying. Should not mongokit ask either table creation (empty) ...
    Olivier sallouOlivier sallou
    Feb 28, 2013 at 7:37 am
    Feb 28, 2013 at 7:37 am
  • Hi, starting out, ran into a problem with cutomtype. Trying to embed address into user I get this error: *SchemaTypeError: addresses must be an instance of dict not Address* However: * print ...
    Joseph GreenawaltJoseph Greenawalt
    Feb 22, 2013 at 10:16 am
    Feb 22, 2013 at 10:16 am
  • Hi, I am having errors with no attribute 'find_and_modify' on my document. The following (basic mongokit) works: stat = mobyle.common.session.HourlyStatistic() stat.save So my global config is ok. so ...
    Olivier sallouOlivier sallou
    Jan 23, 2013 at 12:50 pm
    Feb 3, 2013 at 4:39 pm
  • Given we now have the "background" option in mongodb when creating indexes, wouldn't it be worth-while switching automatic indexing back on with "background" always set to `true`? It seems as though ...
    Phillip B OldhamPhillip B Oldham
    Jan 14, 2013 at 3:37 pm
    Jan 14, 2013 at 3:37 pm
  • Hi, I have a strange error. I execute my tests with nose and I have errors according to context: 1) If I execute "nosetests tests/testUser.py" , tests are ok. 2) If I execute "nosetests" , it ...
    Olivier sallouOlivier sallou
    Jan 12, 2013 at 9:50 am
    Jan 12, 2013 at 10:09 am
  • Hi, I am trying to call the find method on a connection using python reflexion "db_conn.objklass.find(filter)" but I have errors: TypeError: 'Collection' object is not callable. objklass is this case ...
    Olivier sallouOlivier sallou
    Jan 7, 2013 at 4:49 pm
    Jan 12, 2013 at 9:43 am
  • Hi, I have the pleasure to inform you that the version 0.8.2 is released. This version brings compatibly with pymongo 2.4. This is the changelog : * fix #101 - validators condition fix * fix #110 - ...
    Nicolas ClaironNicolas Clairon
    Dec 11, 2012 at 2:13 pm
    Jan 18, 2013 at 2:33 pm
  • Hi, I hope it’s okay to revive an old thread; I did not find any more recent discussion. I have a document class with one dict field mapping ints to datetimes, and I haven’t found an easy way to ...
    Éric LudiaÉric Ludia
    Nov 8, 2012 at 7:03 pm
    Nov 8, 2012 at 7:03 pm
  • Using pyramid and mongodb. How can we create a recursive kind of relationship( For e.g nested comments system) in the models? Thanks
    Saurabh prakashSaurabh prakash
    Oct 11, 2012 at 8:44 pm
    Oct 12, 2012 at 3:09 pm
  • Got this error when trying to save a document by calling Document.save(self) in my model class that extends Document class: File "C:\Dev\Python27\lib\site-packages\mongokit\document.py", line 412, in ...
    Jlist9Jlist9
    Sep 23, 2012 at 7:39 pm
    Sep 25, 2012 at 4:42 am
  • Hi all, I'm still learning mongokit. I notice that mongokit does not store class information in mongo documents so the mapping between a mongo doc and a Document class has to happen manually, i.e ...
    Jlist9Jlist9
    Sep 4, 2012 at 10:02 pm
    Sep 5, 2012 at 5:48 pm
  • Hi all, I'm experimenting with MongoKit. I'm seeing errors when I did some simple operation such as drop_database or drop_collection. Traceback (most recent call last): File "<interactive input ", ...
    Jlist9Jlist9
    Sep 4, 2012 at 10:42 am
    Sep 4, 2012 at 3:53 pm
  • Hi all, It's time for a release. This version add some fix and enhancement. More importantly, this release brings support for pymongo version 2.3. So, if you are using pymongo 2.3, you *must* upgrade ...
    Nicolas ClaironNicolas Clairon
    Sep 4, 2012 at 10:27 am
    Sep 4, 2012 at 10:27 am
  • Hi, I'm following the tutorial to get some idea on how mongokit works, but I get a TypeError Exception whenever I call the validate() method. I have basically copy&pasted the blogpost example in ...
    EnolfcEnolfc
    Sep 3, 2012 at 8:02 am
    Sep 4, 2012 at 10:22 am
  • I understand that VersionedDocuments aren't currently "supported", however I have a question: Are/were VersionedDocuments designed to work with DBRefs, so that one could point to a revision? For ...
    Phillip B OldhamPhillip B Oldham
    Jul 30, 2012 at 4:15 pm
    Jul 30, 2012 at 4:15 pm
  • I implemented my own query method by_id, so that I can use like: User.by_id('xxx') And I felt Connection.Document is really inconvenient(I have many custom operation method). connection = ...
    This TwistedThis Twisted
    Jul 18, 2012 at 8:13 am
    Jul 20, 2012 at 1:38 am
  • I'm using 0.8.0. I noticed the following message when running my unit tests: mongokit/collection.py:49: DeprecationWarning: Category: Be careful, index Poking around at the code a bit more, I see a ...
    Adam DustonAdam Duston
    May 23, 2012 at 1:28 pm
    May 23, 2012 at 1:28 pm
  • You may like to have a look at Schemaless Structure http://namlook.github.com/mongokit/structure.html#schemaless-structure This may come in handy to add while doing your migration to bypass any ...
    MarkdsieversMarkdsievers
    May 18, 2012 at 2:54 am
    May 18, 2012 at 2:54 am
  • http://stackoverflow.com/questions/10630171/mongokit-pymongo-empty-dicts-being-stored
    MarkdsieversMarkdsievers
    May 17, 2012 at 2:48 pm
    May 20, 2012 at 12:01 pm
  • Asked on SO http://stackoverflow.com/questions/10627832/creating-a-declarative-mongokit-structure-without-validation Thanks for any assistance, Mark
    MarkdsieversMarkdsievers
    May 17, 2012 at 7:42 am
    May 17, 2012 at 7:42 am
  • Hi list, My first email. I wanted to share my attempted at idempotent writes and atomic writes. I believe its related to this older topic ...
    Scott ReynoldsScott Reynolds
    May 14, 2012 at 11:04 am
    May 14, 2012 at 11:04 am
  • Hi everyone, I have the pleasure to announce that I just released MongoKit v0.8. Here is the changelog : https://github.com/namlook/mongokit#recent-change-log I've reviewed and included a lot of ...
    Nicolas ClaironNicolas Clairon
    May 7, 2012 at 8:41 am
    May 7, 2012 at 8:41 am
  • I'm finding some problems with defining schemas, specifically validation and references within lists stored in a dict. I've created a number of test cases to show the problem ...
    Phillip B OldhamPhillip B Oldham
    May 2, 2012 at 11:58 am
    May 2, 2012 at 11:58 am
  • Hi guys Out of interest, how does MongoKit handle timezones when storing/retrieving datetime.datetime values? Is the timezone of the datetime.datetime value stored in mongo, or is it assumed that the ...
    Phillip B OldhamPhillip B Oldham
    May 1, 2012 at 3:50 pm
    May 1, 2012 at 3:50 pm
  • Hello, I’ve been working on some code that uses mongokit and would like to send read queries to the secondaries. I connect to the set with mongokit.Connection('mongodb:// ...
    Éric AraujoÉric Araujo
    May 1, 2012 at 10:46 am
    May 8, 2012 at 3:59 pm
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupmongokit @
discussions42
posts103
users29

Top users

Nicolas Clairon: 35 posts Olivier sallou: 9 posts Hervé Ménager: 8 posts Jlist9: 6 posts Phillip B Oldham: 4 posts Justinas Gulbinas: 4 posts John Brodie: 4 posts Markdsievers: 4 posts Éric Araujo: 3 posts This Twisted: 3 posts Enolfc: 3 posts Heigler Rocha: 2 posts GN: 2 posts Shahaf Abileah: 1 post Chris Wj: 1 post GrizzLyCRO: 1 post Daniel Rodriguez del Villar Trimarchi: 1 post Peter Bengtsson: 1 post Gonzalo: 1 post Santiago Ezcurra: 1 post
show more