def is_file_editable(self, filename):
        """
            Determine if the file can be edited.

            Override to customize behavior.

            :param filename:
                Source file name
        """
        ext = op.splitext(filename)[1].lower()

        if ext.startswith('.'):
            ext = ext[1:]

        if not self.editable_extensions or ext not in self.editable_extensions:
            return False

        return True
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/contrib/fileadmin.py/FileAdmin.is_file_editable/original