[Checkins] SVN: PluggableAuthService/trunk/plugins/ - removing more obsolete BBB code

Jens Vagelpohl jens at dataflake.org
Fri Oct 20 16:03:06 EDT 2006


Log message for revision 70853:
  - removing more obsolete BBB code

Changed:
  U   PluggableAuthService/trunk/plugins/BasePlugin.py
  U   PluggableAuthService/trunk/plugins/ScriptablePlugin.py

-=-
Modified: PluggableAuthService/trunk/plugins/BasePlugin.py
===================================================================
--- PluggableAuthService/trunk/plugins/BasePlugin.py	2006-10-20 19:42:41 UTC (rev 70852)
+++ PluggableAuthService/trunk/plugins/BasePlugin.py	2006-10-20 20:03:04 UTC (rev 70853)
@@ -107,13 +107,6 @@
         """ Canonical way to get at the PAS instance from a plugin """
         return aq_parent( aq_inner( self ) )
 
-try:
-    from Products.Five.bridge import fromZ2Interface
-except ImportError:
-    BasePlugin.__implements__ = SimpleItem.__implements__
-else:
-    classImplements( BasePlugin
-                   , *implementedBy(SimpleItem)
-                   )
+classImplements(BasePlugin, *implementedBy(SimpleItem))
 
 InitializeClass(BasePlugin)

Modified: PluggableAuthService/trunk/plugins/ScriptablePlugin.py
===================================================================
--- PluggableAuthService/trunk/plugins/ScriptablePlugin.py	2006-10-20 19:42:41 UTC (rev 70852)
+++ PluggableAuthService/trunk/plugins/ScriptablePlugin.py	2006-10-20 20:03:04 UTC (rev 70853)
@@ -149,17 +149,10 @@
                               'Interfaces+updated.'
                             % self.absolute_url())
 
-try:
-    from Products.Five.bridge import fromZ2Interface
-except ImportError:
-    ScriptablePlugin.__implements__ = ( (IScriptablePlugin,)
-                                      + Folder.__implements__
-                                      + BasePlugin.__implements__
-                                      )
-else:
-    classImplements( ScriptablePlugin
-                   , IScriptablePlugin
-                   , *(implementedBy(Folder) + implementedBy(BasePlugin))
-                   )
 
+classImplements( ScriptablePlugin
+               , IScriptablePlugin
+               , *(implementedBy(Folder) + implementedBy(BasePlugin))
+               )
+
 InitializeClass(ScriptablePlugin)



More information about the Checkins mailing list