Switch to unified view

a/Allura/allura/command/base.py b/Allura/allura/command/base.py
...
...
59
            pylons.c.user = M.User.anonymous()
59
            pylons.c.user = M.User.anonymous()
60
        else:
60
        else:
61
            # Probably being called from another script (websetup, perhaps?)
61
            # Probably being called from another script (websetup, perhaps?)
62
            log = logging.getLogger('allura.command')
62
            log = logging.getLogger('allura.command')
63
            conf = pylons.config
63
            conf = pylons.config
64
        self.tools = pylons.g.tool_entry_points.values()
64
        self.tools = pylons.g.entry_points['tool'].values()
65
        for ep in iter_entry_points('allura.command_init'):
65
        for ep in iter_entry_points('allura.command_init'):
66
            log.info('Running command_init for %s', ep.name)
66
            log.info('Running command_init for %s', ep.name)
67
            ep.load()(conf)
67
            ep.load()(conf)
68
        log.info('Loaded tools')
68
        log.info('Loaded tools')
69
69