Changeset 12475


Ignore:
Timestamp:
15 Jan 2015, 13:01:02 (10 years ago)
Author:
uli
Message:

Remove what apparently is considered trash.

File:
1 edited

Legend:

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

    r12472 r12475  
    8080        """Lookup all plugins and call their `update()` method.
    8181        """
    82         name = getattr(self, '__name__', '<Unnamed>')
    83         self.logger.info('Fire upgrade event for site %s' % name)
    84         grok.notify(ObjectUpgradeEvent(self))
    85         self.logger.info('Done.')
    86         #self.logger.info('Now upgrading any plugins.')
    87         self.logger.info('Now upgrading documents plugin.')
    88         for name, plugin in getUtilitiesFor(IKofaPluggable):
    89             if name in ('documents',):
    90                 plugin.update(self, name, self.logger)
    91         self.logger.info('Plugin update finished.')
     82        # XXX: TBD: Remove update() in all plugins but documents
     83        getUtility(IKofaPluggable, name='documents').update(
     84            self, 'documents', self.logger)
    9285        return
    9386attrs_to_fields(University)
Note: See TracChangeset for help on using the changeset viewer.