Closed jamadden closed 7 years ago
I'll note that zope.principalannotation does this by default.
I'll note that zope.principalannotation does this by default.
But the Annotations
object used there is a subclass of Persistent
and Location
.
I am not sure what you want to change. Could you sketch it on a branch? I think it is much easier to think about existing code.
Sure, #13. It's very simple, it isn't even a new field.
I did not think it was that easy, but a line of code tells more than a hundred words. :-)
This would make it compatible with the
IConnection
adapter provided byzope.keyreference
(assuming the object it annotates is persistent), which could simplify some use cases. AttributeAnnotations is itself not persistent, though the BTree it contains is.For pickle compatibility this could be a property that reads
self.obj
.Are there any downsides to making this generally the case?
(This comes out of a discussion in a private repository.)