Allura/allura/model/repository.py
def has_html_view(self):
        '''
        Return true if file is a text file that can be displayed.
        :return: boolean
        '''
        if self.extension in BINARY_EXTENSIONS:
            return False
        if (self.content_type.startswith('text/') or
                self.extension in VIEWABLE_EXTENSIONS or
                self.extension in PYPELINE_EXTENSIONS or
                self.extension in self.repo._additional_viewable_extensions or
                utils.is_text_file(self.text)):
            return True
        return False

        Return true if file is a text file that can be displayed.
        :return: boolean
        
Return true if file is a text file that can be displayed.
Return true if file is a text file that can be displayed .
def has_html_view(self):
        if self.extension in BINARY_EXTENSIONS:
            return False
        if (self.content_type.startswith('text/') or
                self.extension in VIEWABLE_EXTENSIONS or
                self.extension in PYPELINE_EXTENSIONS or
                self.extension in self.repo._additional_viewable_extensions or
                utils.is_text_file(self.text)):
            return True
        return False
def has_html_view ( self ) : if self . extension in BINARY_EXTENSIONS : return False if ( self . content_type . startswith ( 'text/' ) or self . extension in VIEWABLE_EXTENSIONS or self . extension in PYPELINE_EXTENSIONS or self . extension in self . repo . _additional_viewable_extensions or utils . is_text_file ( self . text ) ) : return True return False
Return true if file is a text file that can be displayed.
Return true if file is a text file that can be displayed .
'''
        Return true if file is a text file that can be displayed.
        :return: boolean
        '''
None
self