Allura/allura/ext/user_profile/user_main.py
def profile_sections(self):
        """
        Loads and caches user profile sections from the entry-point
        group ``[allura.user_profile.sections]``.

        Profile sections are loaded unless disabled (see
        `allura.lib.helpers.iter_entry_points`) and are sorted according
        to the `user_profile_sections.order` config value.

        The config should contain a comma-separated list of entry point names
        in the order that they should appear in the profile.  Unknown or
        disabled sections are ignored, and available sections that are not
        specified in the order come after all explicitly ordered sections,
        sorted randomly.
        """
        if hasattr(UserProfileApp, '_sections'):
            return UserProfileApp._sections
        sections = {}
        for ep in h.iter_entry_points('allura.user_profile.sections'):
            sections[ep.name] = ep.load()
        section_ordering = tg.config.get('user_profile_sections.order', '')
        ordered_sections = []
        for section in re.split(r'\s*,\s*', section_ordering):
            if section in sections:
                ordered_sections.append(sections.pop(section))
        UserProfileApp._sections = ordered_sections + sections.values()
        return UserProfileApp._sections

        Loads and caches user profile sections from the entry-point
        group ``[allura.user_profile.sections]``.

        Profile sections are loaded unless disabled (see
        `allura.lib.helpers.iter_entry_points`) and are sorted according
        to the `user_profile_sections.order` config value.

        The config should contain a comma-separated list of entry point names
        in the order that they should appear in the profile.  Unknown or
        disabled sections are ignored, and available sections that are not
        specified in the order come after all explicitly ordered sections,
        sorted randomly.
        
Loads and caches user profile sections from the entry-point
group ``[allura.user_profile.sections]``.

Profile sections are loaded unless disabled (see
`allura.lib.helpers.iter_entry_points`) and are sorted according
to the `user_profile_sections.order` config value.

The config should contain a comma-separated list of entry point names
in the order that they should appear in the profile.  Unknown or
disabled sections are ignored, and available sections that are not
specified in the order come after all explicitly ordered sections,
sorted randomly.
Loads and caches user profile sections from the entry - point group ` ` [ allura . user_profile . sections ] ` ` . Profile sections are loaded unless disabled ( see ` allura . lib . helpers . iter_entry_points ` ) and are sorted according to the ` user_profile_sections . order ` config value . The config should contain a comma - separated list of entry point names in the order that they should appear in the profile . Unknown or disabled sections are ignored and available sections that are not specified in the order come after all explicitly ordered sections sorted randomly .
def profile_sections(self):
        if hasattr(UserProfileApp, '_sections'):
            return UserProfileApp._sections
        sections = {}
        for ep in h.iter_entry_points('allura.user_profile.sections'):
            sections[ep.name] = ep.load()
        section_ordering = tg.config.get('user_profile_sections.order', '')
        ordered_sections = []
        for section in re.split(r'\s*,\s*', section_ordering):
            if section in sections:
                ordered_sections.append(sections.pop(section))
        UserProfileApp._sections = ordered_sections + sections.values()
        return UserProfileApp._sections
def profile_sections ( self ) : if hasattr ( UserProfileApp , '_sections' ) : return UserProfileApp . _sections sections = { } for ep in h . iter_entry_points ( 'allura.user_profile.sections' ) : sections [ ep . name ] = ep . load ( ) section_ordering = tg . config . get ( 'user_profile_sections.order' , '' ) ordered_sections = [ ] for section in re . split ( r'\s*,\s*' , section_ordering ) : if section in sections : ordered_sections . append ( sections . pop ( section ) ) UserProfileApp . _sections = ordered_sections + sections . values ( ) return UserProfileApp . _sections
Loads and caches user profile sections from the entry-point
group ``[allura.user_profile.sections]``.
Loads and caches user profile sections from the entry - point group ` ` [ allura . user_profile . sections ] ` ` .
"""
        Loads and caches user profile sections from the entry-point
        group ``[allura.user_profile.sections]``.

        Profile sections are loaded unless disabled (see
        `allura.lib.helpers.iter_entry_points`) and are sorted according
        to the `user_profile_sections.order` config value.

        The config should contain a comma-separated list of entry point names
        in the order that they should appear in the profile.  Unknown or
        disabled sections are ignored, and available sections that are not
        specified in the order come after all explicitly ordered sections,
        sorted randomly.
        """
self