Nicolas Joannin njoannin

  • Joined on
@njoannin

OK, cool: that makes it easy.

@njoannin

@HonzaKral Can the _doc_class be directly InnerObjectWrapper? @andybarilla It seems to me that Honza's example is what you're looking for... Transp…

@njoannin

Oh, and if you need Child to represent an individual document type, you need to make it derive from DocType, not a field class. class Child(DocType…

@njoannin

Hmm, you have me confused about what you want and do not want... In Python, everything is an "object", and I'm not sure what a "plain old object" is.

@njoannin

Have you tried using the Nested field object? from elasticsearch_dsl import DocType, Nested, String class Parent(DocType): name = String() child = …

@njoannin
Using the scan method: how to add preserve_order=True?
@njoannin

I missed that one... Thanks!

@njoannin
Using the scan method: how to add preserve_order=True?
@njoannin

OK Thanks!

@njoannin

The only way I see for doing this is: del obj._d_["attr"] But (1) I'm not sure this doesn't affect something else, and (2) it uses a private attri…

@njoannin
Deleting attributes?
@njoannin
pagintation.links() does not work
njoannin commented on issue lixxu/flask-paginate#30
@njoannin

OK, thanks!

njoannin commented on issue lixxu/flask-paginate#30
@njoannin

@lixxu Thanks for your reply. Indeed, that is the case. Nevertheless, pagination.links outputs exactly the same error message. And the modification…

@njoannin
pagintation.links() does not work
@njoannin

Hmm, indeed, upgrading fixed it. Not quite sure why the initial install (which I did just a few hours ago) didn't work out... Sorry for the waste o…

@njoannin
Can't access my_doctype.meta anymore :(
@njoannin
Can't access my_doctype.meta anymore :(
@njoannin

Thanks for the fix!

@njoannin

Thanks for fixing it!

@njoannin
Feature request: secure document creation in the absence of meta.version
@njoannin

I think there is nothing to add to this discussion, so I am closing it now.

@njoannin

@rokcarl You can use the slice operator to retrieve the results you want. The way I would do it is: s = Link.search().filter("term", run_id=3) coun…

@njoannin

If that is how most people expect it to be, then indeed it should not change. Personally, I find it counter intuitive, since anything with a versi…

@njoannin

That would be great, to add a method for that. If not the sexiest name for a method, get_or_none is at least explicit and to the point. I'm OK with…

@njoannin

OK, cool. Works for me!

@njoannin

Hmm, I'm not sure to grasp. Is it like this: f = F('match_all') if condition: f = f & F(...) Correct, or did I misunderstand? And that should work…

@njoannin

Cool! Sorry for the useless issue!

@njoannin
Cannot assign a Nested field attribute from an existing instance
@njoannin
Support for wildcards in searches?