[Zope3-dev] Re: deprecation of zope.app.introspector

Philipp von Weitershausen philipp at weitershausen.de
Thu Sep 14 05:11:23 EDT 2006


Florent Xicluna wrote:
> I see that zope.app.introspector "Will be gone in 3.3." [sic].

:(

We should remove it from the trunk.

> To help on this, I would like to commit a patch on `trunk` to remove dependency
> of API doc on this deprecated package; see below.
> 
> If someone want to keep backward compatibility on this permission, I can do
> something more complex. If no opposition, I will commit this simple change on
> trunk soon.

For backward compatibility, I suggest we redefine 
zope.app.introspector.Introspect to zope.app.apidoc.UseAPIDoc via 
meta:redefinePermission.

> 
> Regards,
> 
> -- Florent
> 
> 
> Index: zope/app/apidoc/codemodule/browser/introspector.zcml
> ===================================================================
> --- zope/app/apidoc/codemodule/browser/introspector.zcml	(revision 70149)
> +++ zope/app/apidoc/codemodule/browser/introspector.zcml	(working copy)
> @@ -47,7 +47,7 @@
>        name="introspector.html"
>        for="*"
>        class=".introspector.Introspector"
> -      permission="zope.app.introspector.Introspect"
> +      permission="zope.app.apidoc.UseAPIDoc"
>        menu="zmi_views" title="Introspector"
>        template="introspector.pt"
>        />
> 
> 



More information about the Zope3-dev mailing list