def __init__(self, channel_type): ''' Initialize empty Channel Template with specific type ''' ChannelType.__init__(self, channel_type) ChannelStyle.__init__(self, channel_type) Template.__init__(self) self.__input_templates = [] # track added input templates self.__input_template_types = set() # track added input template types
def __contains__(self, value): return (ChannelType.__contains__(self, value) and ChannelStyle.__contains__(self, value))