Changeset 4559 for Serveur


Ignore:
Timestamp:
12/03/10 14:16:43 (8 years ago)
Author:
kent1
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Serveur/trac/Piwik4Trac/tracext/piwik/__init__.py

    r4558 r4559  
    6363    def environment_created(self):
    6464        "Nothing to do when an environment is created"""
     65        pass
    6566   
    6667    def environment_needs_upgrade(self, db):
    6768        self.log.debug('environment needs upgrade')
    68         return 'piwik' in self.config
     69        pass
    6970
    7071    def upgrade_environment(self, db):
     
    7374        # I'm placing the migration code here so that it only happens once
    7475        # and the admin notices that a migration was done.
    75         self.log.debug('Migrating Piwik configuration')
    76         for option, value in self.config.options('piwik'):
    77             if self.config.has_option('piwik', option):
    78                 self.config.set('piwik', option, value)
    79             self.config.remove('piwik', option)
    80         self.config.save()
     76        pass
Note: See TracChangeset for help on using the changeset viewer.