Emmanuel Leblond

Results 177 comments of Emmanuel Leblond

You're totally right, this is a serious issue. > Worse, I need it to be applied not only when an embedded document is appended to the list, but also when...

Hi, Have you tried to pass the `find` parameters as kwargs ? ```python Document.find( filter={'$text': {'$search': 'some words'}}, projection={'score': {'$meta': 'textScore'}} ).sort([('score', {'$meta': 'textScore'})]) ```

Hi, I've done so test on your issue: ```python from pymongo import MongoClient from umongo import Instance, Document, fields, validate db = MongoClient().test db.foo.create_index([('bar', 'text')]) db.foo.insert({'bar': 'Hello John'}) db.foo.insert({'bar': 'Hello...

Hi, > So I thought that changing the import according to the motor tornado would work. I tried by creating a simple tornado application and it does work for the...

@zikphil If I recall well, Tornado is now compatible with the asyncio event loop. This used to be not the case (for instance the motor driver provides 2 different backends...

> This code is pretty much what I suggested to put in an exists method of Reference. You said you didn't like the idea ("too low level"). Well you're proving...

As @lafrech said, this is already covered ^^ > This almost works which currently works, but ran into validation issues when the object is used in a ReferenceField since _id...

Do you think the new marshmallow's pre/post processors integration (see https://github.com/Scille/umongo/pull/60#issuecomment-254161242) could be used as a workaround for this ?

You're right, marshmallow's pre/post processors is not the silver bullet we were waiting for ! I'm thinking of a new way to implement this feature: - `on_set` should be simple...

Yeah, `__init__` and `super()` seems really hard to cleanly build from template to implementation. From my point of view it's not such a big deal given a `Document` rotate around...