Give both wrapper classes a ``__getnewargs__`` method, which causes the ZODB...
Give both wrapper classes a ``__getnewargs__`` method, which causes the ZODB optimization to fail and create persistent references using the ``_p_oid`` alone. This happens to be the persistent oid of the wrapped object. This lets these objects to be persisted correctly, even though they are passed to the ZODB in a wrapped state.
Showing
Please register or sign in to comment