#NEWLINE# def add_filter( self , name , group , filter_type , code , on_exception , combined , overwrite = False ) : #NEWLINE# #INDENT# ' Add a new filter.\n\n        :param str name: Name of the new filter.\n        :param str group: Name of the group that the new filter belongs to.\n            If this is None, the filter will not belong to any group (root\n            level). Default: None\n        :param str filter_type: The type of the new filter\n        :param list code: List of lines of code in the filter function.\n        :param bool on_exception: Should the filter return True on an\n            exception? Default: ``True``\n        :param bool overwrite: If ``True``, an existing filter with the same\n            name will be overwritten. If ``False`` and a filter with the\n            same name exists, a value error is raised. Default: ``False``\n        ' #NEWLINE# self . filter_managers [ filter_type ] . add_filter ( name , code , on_exception = on_exception , group_name = group , combined = combined , overwrite = overwrite ) #NEWLINE# self . populate_filter_tree ( ) #NEWLINE# self . filters_changed . emit ( filter_type )