[ZODB-Dev] An interface for broken objects?
Jim Fulton
jim at zope.com
Sun Jan 3 11:38:41 EST 2010
On Thu, Dec 31, 2009 at 3:02 PM, Hanno Schlichting <hanno at hannosch.eu> wrote:
> On Thu, Dec 31, 2009 at 6:03 PM, Jim Fulton <jim at zope.com> wrote:
>> On Thu, Dec 31, 2009 at 11:46 AM, Hanno Schlichting <hanno at hannosch.eu> wrote:
>>> Is this something that could be put into the ZODB itself and have the
>>> ZODB.broken.Broken class directly implement this interface?
>>
>> +1. although it shouldn't be an empty interface.
>
> Ok. I've gone ahead and made a branch for this at:
>
> svn+ssh://svn.zope.org/repos/main/ZODB/branches/hannosch-ibroken
>
> It's a single changeset: http://svn.zope.org/ZODB/?rev=107467&view=rev
Thanks.
> I only specified the custom exception thrown by the __setattr__ in the
> interface. Everything else is private double underscore methods. I
> wasn't sure if any of those should really be specified formally.
Leading *and* trailing double underscores imply "special", rather than private.
I suggest including these in the interface.
> Thanks for considering to merge this :)
Thanks for taking the time to do this.
Jim
--
Jim Fulton
More information about the ZODB-Dev
mailing list