Changeset 12475
- Timestamp:
- 15 Jan 2015, 13:01:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/app.py
r12472 r12475 80 80 """Lookup all plugins and call their `update()` method. 81 81 """ 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) 92 85 return 93 86 attrs_to_fields(University)
Note: See TracChangeset for help on using the changeset viewer.