[PEAK] peak.storage and a delete method
Phillip J. Eby
pje at telecommunity.com
Mon Dec 22 17:08:19 EST 2003
At 04:05 PM 12/22/03 -0600, darryl wrote:
>Hey,
>
>Playing around with peak.storage. I've got a EntityDM and all those nice
>_load and _save methods. I was just wondering, in terms of adding the
>ability to delete do I have to anything more complicated than simply
>adding a delete(oid) method and the assocaited SQL ?
There are several options for this, none of them really standardized. The
simplest would be to implement a __delitem__(self,oid) method, so that you
could do 'del dm[oid]', which reads rather naturally as these things go.
More information about the PEAK
mailing list