Changeset 488


Ignore:
Timestamp:
Mar 13, 2006, 4:22:00 AM (18 years ago)
Author:
Noah Kantrowitz
Message:

HackInstallPlugin:

Now the plugin installer handles entry point based plugins for the auto-disabling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hackinstallplugin/0.9/hackinstall/web_ui.py

    r486 r488  
    149149                    self.config.set('components',line.strip()+'.*','disabled')
    150150            else:
    151                 self.log.debug('Entry point plugin detected, but not supported quite yet')
     151                self.log.debug('Entry point plugin detected')
     152                for entry_name in dist.get_entry_map('trac.plugins'):
     153                    self.log.debug("Processing entry name '%s'"%entry_name)
     154                    entry_point = dist.get_entry_info('trac.plugins', entry_name)
     155                    self.log.debug("Module name is '%s'"%entry_point.module_name)
     156                    self.config.set('components',entry_point.module_name+'.*','disabled')
    152157            self.config.save()
    153158
Note: See TracChangeset for help on using the changeset viewer.