Paul Winkler wrote at 2005-1-31 16:50 -0500:
On Mon, Jan 31, 2005 at 07:45:24PM +0100, Dieter Maurer wrote:
I do not think that "LocalFS" is in any way interested to simulate objects in the ZODB. Instead, it emulates a hierarchy apparently rooted in a ZODB based object. But this is purely an acquisition concept and completely independent from the ZODB.
if you look at the LocalFS code (I have but not recently), it actually creates a temporary instance of e.g. OFS.Image.File on every request for a "file". IIRC these are supposed to be thrown away, but apparently something is broken...
But there is no problem to create an instance of a class deriving from "Persistent" as long as this instance is not assigned to another (really) persistent object. As long as you do not do that, the instance has nothing to do with the ZODB. -- Dieter