moo.core.moojson
Encode/decode MOO JSON.
This module is also the registered Celery task serializer (moojson in
celeryconfig.py), not just the storage format for Property.value.
Anything that crosses a Celery boundary — task args, kwargs, results,
invoke_verb payloads queued from transaction.on_commit — round-trips
through dumps and loads. Two consequences flow from this:
loadsruns before the worker’sContextManageris entered. Logic that readsContextManager.get_site()must tolerateNoneand not silently rewrite refs against the default site, or every cross-site Object arg gets clobbered to$nothingon its way into a task.Anything that goes into
Property.valuealso travels through Celery, so the two encodings must stay reversible without a site context.
Functions
Reset the $nothing object cache (call between tests that reset the DB). |
|
|
|
|
Remove $nothing sentinel entries from list property values. |
|
|
|
Return a new JSON string with all |