[ZODB-Dev] trigger loading a Persistent's attributes
Jens Vagelpohl
jens at dataflake.org
Sun Jan 28 06:45:22 EST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28 Jan 2007, at 00:18, Simon Burton wrote:
>
> I have a Persistent object, however, its attributes only
> get loaded from the storage when I request a specific attribute.
> Problem is, I don't know the names of the attributes
> necessarily. I was trying to just query the __dict__ but
> this does not trigger a load. Is there another way to do this ?
When I am at a debug prompt and the an object's __dict__ is empty, I
do "dir(myobject)", that will load it.
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFvIzURAx5nvEhZLIRAhUoAJ4tuS/WiL85roPWgwkxXMdpGiqyawCfcdLW
4cy89IKcGbkB/hSYT/2N9II=
=0orw
-----END PGP SIGNATURE-----
More information about the ZODB-Dev
mailing list