[Zope-dev] Minor Fix to CopySupport.py
Brian Lloyd
Brian@digicool.com
Mon, 12 Apr 1999 14:05:34 -0400
> The current CVS's CopySupport._get_id funtion is a little buggy.
> When pasting a copied object more than one time, the generated
> Ids are
>
> [original]
> [copy of original]
> copy2 of copy of original
> copy3 of copy2 of copy of original
> ...
>
> which is misleading. The attached function code (sorry,
> I have no diff available) fixes this to
>
> [original]
> [copy of original]
> copy2 of original
> copy3 of original
> ...
>
> and contains a proposal also: The first two lines
>
> try: return ob._get_id(id)
> except AttributeError: pass
>
> call a container's _get_id method if available to allow customization.
Thanks - I've added this for 1.11.0
Brian Lloyd brian@digicool.com
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com