Switch to unified view

a/Allura/allura/model/project.py b/Allura/allura/model/project.py
...
...
390
                                    exclude from sitemap
390
                                    exclude from sitemap
391
        """
391
        """
392
        from allura.app import SitemapEntry
392
        from allura.app import SitemapEntry
393
        entries = []
393
        entries = []
394
394
395
        anchored_tools =self.neighborhood.get_anchored_tools()
395
        anchored_tools = self.neighborhood.get_anchored_tools()
396
        i = len(anchored_tools)
396
        i = len(anchored_tools)
397
        new_tools = self.install_anchored_tools()
397
        new_tools = self.install_anchored_tools()
398
398
399
        # Set menu mode
399
        # Set menu mode
400
        delta_ordinal = i
400
        delta_ordinal = i
...
...
446
        installed_tools = [tool.tool_name.lower() for tool in self.app_configs]
446
        installed_tools = [tool.tool_name.lower() for tool in self.app_configs]
447
        i = 0
447
        i = 0
448
        new_tools = []
448
        new_tools = []
449
        if not self.is_nbhd_project:
449
        if not self.is_nbhd_project:
450
            for tool, label in anchored_tools.iteritems():
450
            for tool, label in anchored_tools.iteritems():
451
                if tool not in installed_tools:
451
                if (tool not in installed_tools) and (self.app_instance(tool) is None):
452
                    try:
452
                    try:
453
                        new_tools.append(self.install_app(tool, tool, label, i))
453
                        new_tools.append(self.install_app(tool, tool, label, i))
454
                    except Exception:
454
                    except Exception:
455
                        log.error('%s is not available' % tool, exc_info=True)
455
                        log.error('%s is not available' % tool, exc_info=True)
456
                i += 1
456
                i += 1