Ignore:
Timestamp:
31 Mar 2010, 17:48:11 (15 years ago)
Author:
uli
Message:

Let AccessCodePlugin? updater do something.

File:
1 edited

Legend:

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

    r5102 r5107  
    112112
    113113    def update(self, site, name, logger):
    114         pass
     114        if not 'accesscodes' in site.keys():
     115            logger.info('Updating site at %s. Installing access codes.' % (
     116                    site,))
     117            self.setup(site, name, logger)
     118        else:
     119            logger.info(
     120                'AccessCodePlugin: Updating site at %s: Nothing to do.' % (
     121                    site, ))
     122        return
Note: See TracChangeset for help on using the changeset viewer.