Changeset 5421 for main


Ignore:
Timestamp:
12 Aug 2010, 12:59:06 (14 years ago)
Author:
uli
Message:

Add a poral method to update all plugins. This could ease some
upgrading tasks in future tremendously.

File:
1 edited

Legend:

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

    r5407 r5421  
    8383            plugin.setup(self, name, self.logger)
    8484        return
    85        
     85
     86    def updatePlugins(self):
     87        """Lookup all plugins and call their `update()` method.
     88        """
     89        for name, plugin in getUtilitiesFor(IWAeUPSIRPPluggable):
     90            plugin.update(self, name, self.logger)
     91        return
     92
    8693    def _setupLogger(self, logger):
    8794        """Setup general application logger.
Note: See TracChangeset for help on using the changeset viewer.