Anthony Blackshaw

Results 150 comments of Anthony Blackshaw

Beyond the Id of the file what else would the SubFrame/Embedded document store, if it's just the Id this seems like we'd be creating structure for a single field? One...

@cubiclesoft yeah rightly or wrongly the responsibility to encode/escape the value before setting it is the caller's - I imagine I did this for performance at the time since typically...

Update: This doesn't appear to escape quotes :/ looking into.

Ah yep just found that as well, unless the value sits within a html value quotes shouldn't be escaped so that makes sense now. E.g `"` is preferable to `quot;`....

The other option here is to perhaps incorporate something like https://github.com/mathiasbynens/he which seems comprehensive and not too heavy.

Hi @njordr, We have been looking at adding support for a `TypedFrame` class that would allow simple type validation for documents based on Python types. I've avoided this in general...

@mohmagdy Hey. So there isn't a way directly through the library - it's something I thought about adding though so now that some else has raised it I'll take a...

I'm in the habit of using the `Q` object to generate queries, this is on of the few cases where actually it's shorter to use the raw query (so in...

if you set the value to an empty string you'll need to also remove it from the internal document, so: ``` employee._document.pop('company') Employee.get_collection().update_one( {'_id': employee._id}, {'$unset': {'company': ''}} ) ```

The `unset` and `unset_many` methods have been in place now since 2020 so I'm closing this issue.