Ignore:
Timestamp:
18 May 2011, 22:29:47 (14 years ago)
Author:
uli
Message:

Make a possibility to update/create catalogs in a running site.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
2 added
2 edited

Legend:

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

    r6137 r6138  
    130130        """Lookup all plugins and call their `update()` method.
    131131        """
     132        name = getattr(self, '__name__', '<Unnamed>')
     133        self.logger.info('Fire upgrade event for site %s' % name)
     134        grok.notify(ObjectUpgradeEvent(self))
     135        self.logger.info('Done.')
     136        self.logger.info('Now upgrading any plugins.')
    132137        for name, plugin in getUtilitiesFor(IWAeUPSIRPPluggable):
    133138            plugin.update(self, name, self.logger)
     139        self.logger.info('Plugin update finished.')
    134140        return
    135141
  • main/waeup.sirp/trunk/src/waeup/sirp/configure.zcml

    r3521 r6138  
    22           xmlns:grok="http://namespaces.zope.org/grok">
    33  <include package="grok" />
     4  <include package="waeup.sirp" file="meta.zcml" />
    45  <includeDependencies package="." />
    56  <grok:grok package="." />
Note: See TracChangeset for help on using the changeset viewer.