High-level NewtDB questions

Sean Upton <[email protected]> Thu, 23 Aug 2018 22:05:02 -0600
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
I have a few conceptual questions about NewtDB, so I figured I would throw these out here:

1. Is it intended that applications integrating NewtDB might add custom handlers to newt.db.jsonpickle.special_classes — I believe it is possible?

2. If so, would it be possible to serialize a objects of blacklisted type(s) to None or some sentinel value instead of storing an actual serialization in the JSON?  Or is it better to just monkey-patch newt.db.jsonpickle.Jsonifier.skip_class to this end?

3. Would it be folly to think if #1 and (either path in) #2 are reasonable, I could store a Zope2 app in NewtDB, blacklisting any noisy ZCatalog objects that are not themselves in the BTrees package?

4. How does one make a query result from connection.where sensible in a situation where I want to get that object's original containment context (placeful parent object, path, or other such thing)?  Is this a non-starter, or is this sensible?

Thanks,
Sean

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.