Changeset 5071 for main


Ignore:
Timestamp:
23 Mar 2010, 14:33:56 (15 years ago)
Author:
uli
Message:

Change way to setup plugins as required by the new plugin API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/app.py

    r5054 r5071  
    77    # BBB
    88    from zope.app.security.interfaces import IAuthentication
    9 from zope.component import createObject, getAllUtilitiesRegisteredFor
     9from zope.component import createObject, getUtilitiesFor
    1010try:
    1111    from zope.pluggableauth import PluggableAuthentication
     
    5757        """Create instances of all plugins defined somewhere.
    5858        """
    59         plugins = getAllUtilitiesRegisteredFor(IWAeUPSIRPPluggable)
    60         for plugin in plugins:
    61             self[plugin.name] = createObject(plugin.factory_name)
     59        for name, plugin in getUtilitiesFor(IWAeUPSIRPPluggable):
     60            plugin.setup(self, name, self.logger)
     61        return
    6262       
    6363    def _setupLogger(self, logger):
Note: See TracChangeset for help on using the changeset viewer.