Allura/allura/model/project.py
def ordered_mounts(self, include_hidden=False):
        '''Returns an array of a projects mounts (tools and sub-projects) in
        toolbar order.'''
        result = []
        anchored_tools = self.neighborhood.get_anchored_tools()
        i = len(anchored_tools)
        self.install_anchored_tools()

        for sub in self.direct_subprojects:
            result.append(
                {'ordinal': int(sub.ordinal + i), 'sub': sub, 'rank': 1})
        for ac in self.app_configs:
            App = g.entry_points['tool'].get(ac.tool_name)
            if include_hidden or App and not App.hidden:
                if not self.is_nbhd_project and (ac.tool_name.lower() in anchored_tools.keys()):
                    ordinal = anchored_tools.keys().index(ac.tool_name.lower())
                else:
                    ordinal = int(ac.options.get('ordinal', 0)) + i
                rank = 0 if ac.options.get(
                    'mount_point', None) == 'home' else 1
                result.append(
                    {'ordinal': int(ordinal), 'ac': ac, 'rank': rank})
        return sorted(result, key=lambda e: (e['ordinal'], e['rank']))
Returns an array of a projects mounts (tools and sub-projects) in
        toolbar order.
Returns an array of a projects mounts (tools and sub-projects) in
toolbar order.
Returns an array of a projects mounts ( tools and sub - projects ) in toolbar order .
def ordered_mounts(self, include_hidden=False):
        result = []
        anchored_tools = self.neighborhood.get_anchored_tools()
        i = len(anchored_tools)
        self.install_anchored_tools()
        for sub in self.direct_subprojects:
            result.append(
                {'ordinal': int(sub.ordinal + i), 'sub': sub, 'rank': 1})
        for ac in self.app_configs:
            App = g.entry_points['tool'].get(ac.tool_name)
            if include_hidden or App and not App.hidden:
                if not self.is_nbhd_project and (ac.tool_name.lower() in anchored_tools.keys()):
                    ordinal = anchored_tools.keys().index(ac.tool_name.lower())
                else:
                    ordinal = int(ac.options.get('ordinal', 0)) + i
                rank = 0 if ac.options.get(
                    'mount_point', None) == 'home' else 1
                result.append(
                    {'ordinal': int(ordinal), 'ac': ac, 'rank': rank})
        return sorted(result, key=lambda e: (e['ordinal'], e['rank']))
def ordered_mounts ( self , include_hidden = False ) : result = [ ] anchored_tools = self . neighborhood . get_anchored_tools ( ) i = len ( anchored_tools ) self . install_anchored_tools ( ) for sub in self . direct_subprojects : result . append ( { 'ordinal' : int ( sub . ordinal + i ) , 'sub' : sub , 'rank' : 1 } ) for ac in self . app_configs : App = g . entry_points [ 'tool' ] . get ( ac . tool_name ) if include_hidden or App and not App . hidden : if not self . is_nbhd_project and ( ac . tool_name . lower ( ) in anchored_tools . keys ( ) ) : ordinal = anchored_tools . keys ( ) . index ( ac . tool_name . lower ( ) ) else : ordinal = int ( ac . options . get ( 'ordinal' , 0 ) ) + i rank = 0 if ac . options . get ( 'mount_point' , None ) == 'home' else 1 result . append ( { 'ordinal' : int ( ordinal ) , 'ac' : ac , 'rank' : rank } ) return sorted ( result , key = lambda e : ( e [ 'ordinal' ] , e [ 'rank' ] ) )
Returns an array of a projects mounts (tools and sub-projects) in
toolbar order.
Returns an array of a projects mounts ( tools and sub - projects ) in toolbar order .
'''Returns an array of a projects mounts (tools and sub-projects) in
        toolbar order.'''
self
include_hidden