[ZODB-Dev] getting the object ID (_p_oid attribute)

Robert Gravina robert at gravina.com
Mon Jun 26 14:03:22 EDT 2006


I've been having trouble getting the object ID of persisted objects  
in the ZODB. I have read that the _p_oid attribute is supposed to  
contain this, but when I access persisted objects from a filestore  
and check this value it always seems to be None.

Also, is there any way to get an object ID *before* an object has  
been persisted?

Thanks!

Robert


More information about the ZODB-Dev mailing list