[Zope3-checkins] Re: SVN: Zope3/trunk/src/zope/app/schema/interfaces.py IVocabularyFactory apparently moved, so add deprecation warning.

Philipp von Weitershausen philipp at weitershausen.de
Thu Apr 27 09:39:27 EDT 2006


Martijn Faassen wrote:
> Log message for revision 67634:
>   IVocabularyFactory apparently moved, so add deprecation warning.

I didn't create this deprecation warning for a reason:

IVocabularyFactory was introduced into zope.app.schema.interfaces only
recently (after 3.2!). So there's no "released" Zope 3 version that
needs to be provided with BBB, the refactoring was basically within a
release period.

Perhaps we can therefore get rid of this alias again, it'd be one less
BBB thing to worry about in the future...

> Changed:
>   U   Zope3/trunk/src/zope/app/schema/interfaces.py
> 
> -=-
> Modified: Zope3/trunk/src/zope/app/schema/interfaces.py
> ===================================================================
> --- Zope3/trunk/src/zope/app/schema/interfaces.py	2006-04-27 10:24:07 UTC (rev 67633)
> +++ Zope3/trunk/src/zope/app/schema/interfaces.py	2006-04-27 11:06:01 UTC (rev 67634)
> @@ -88,3 +88,8 @@
>  class IMutableSchema(IReadMutableSchema, IWriteMutableSchema):
>      """This object represents an interface/schema that can be edited by
>      managing the fields it contains."""
> +
> +import zope.deferredimport
> +zope.deferredimport.deprecated(
> +    'IVocabularyFactory has moved to zope.schema.interfaces',
> +    IVocabularyFactory = 'zope.schema.interfaces:IVocabularyFactory')



More information about the Zope3-Checkins mailing list