Add plugin repo versions to the health list.

This commit is contained in:
Max Goodman
2012-08-07 14:30:32 -07:00
parent fd13f2100a
commit bd16af84a4

View File

@@ -109,6 +109,12 @@ class PluginLoader(object):
def load_plugins(self):
g = config['pylons.g']
for plugin in self:
# Record plugin version
entry = plugin.entry_point
git_dir = os.path.join(entry.dist.location, '.git')
g.record_repo_version(entry.name, git_dir)
# Load plugin
g.config.add_spec(plugin.config)
config['pylons.paths']['templates'].extend(plugin.template_dirs)
plugin.add_js()