[Zope-Coders] Re: SVN: Zope/trunk/ - Recataloging a ZCatalog instance is now more safe and predictable.

Casey Duncan casey at zope.com
Thu May 13 15:16:18 EDT 2004


On Thu, 13 May 2004 14:33:47 -0400
Andreas Jung <andreas at andreas-jung.com> wrote:
[..]
>  manage_addZCatalogForm=DTMLFile('dtml/addZCatalog',globals())
> @@ -55,6 +57,8 @@
>  
>  
>  class ZCatalog(Folder, Persistent, Implicit):
> +    __implements__ = IZCatalog
> +
>      """ZCatalog object
>  
>      A ZCatalog contains arbirary index like references to Zope
> @@ -73,8 +77,6 @@
>      Python program to catalog objects.
>  
>      """
> -    
> -    __implements__ = IZCatalog

Moving this up means that ZCatalog no longer has a docstring. The
docstring must be first for the interpreter to recognize it and stuff it
into __doc__.

-Casey




More information about the Zope-Coders mailing list