[Checkins] SVN: PluggableAuthService/branches/1.5/ Backported c77631 from trunk. Shut up DeprecationWarning: isImplementedBy has been renamed to providedBy.

Hanno Schlichting plone at hannosch.info
Sun Oct 14 13:45:52 EDT 2007


Log message for revision 80872:
  Backported c77631 from trunk. Shut up DeprecationWarning: isImplementedBy has been renamed to providedBy.
  

Changed:
  U   PluggableAuthService/branches/1.5/doc/CHANGES.txt
  U   PluggableAuthService/branches/1.5/plugins/BasePlugin.py

-=-
Modified: PluggableAuthService/branches/1.5/doc/CHANGES.txt
===================================================================
--- PluggableAuthService/branches/1.5/doc/CHANGES.txt	2007-10-14 12:57:51 UTC (rev 80871)
+++ PluggableAuthService/branches/1.5/doc/CHANGES.txt	2007-10-14 17:45:51 UTC (rev 80872)
@@ -4,6 +4,9 @@
 
     Bugs fixed
 
+      - Backported c77631 from trunk. Shut up DeprecationWarning:
+        isImplementedBy has been renamed to providedBy.
+
       - DomainAuthHelper plugin:  fix glitch for plugins which have never
         configured any "default" policy:  'authenticateCredentials' and
         'getRolesForPrincipal' would raise ValueError.

Modified: PluggableAuthService/branches/1.5/plugins/BasePlugin.py
===================================================================
--- PluggableAuthService/branches/1.5/plugins/BasePlugin.py	2007-10-14 12:57:51 UTC (rev 80871)
+++ PluggableAuthService/branches/1.5/plugins/BasePlugin.py	2007-10-14 17:45:51 UTC (rev 80872)
@@ -70,8 +70,8 @@
 
     security.declareProtected( ManageUsers, 'testImplements' )
     def testImplements( self, interface ):
-        """ Can't access Interface.isImplementedBy() directly in ZPT. """
-        return interface.isImplementedBy( self )
+        """ Can't access Interface.providedBy() directly in ZPT. """
+        return interface.providedBy( self )
 
     security.declareProtected( ManageUsers, 'manage_activateInterfaces' )
     def manage_activateInterfaces( self, interfaces, RESPONSE=None ):



More information about the Checkins mailing list