(self, setting, value, context, attrs, metas)
return matched, len(value)
Match a list of values with the given context.
        returns a tuple containing number of matched and all values.
Match a list of values with the given context.
        returns a tuple containing number of matched and all values.
Match a list of values with the given context . returns a tuple containing number of matched and all values .
def match_list(self, setting, value, context, attrs, metas):
        """Match a list of values with the given context.
        returns a tuple containing number of matched and all values.
        """
        matched = 0
        for item in value:
            if self.is_valid_item(setting, item, attrs, metas):
                matched += 1
            elif setting.required == ContextSetting.REQUIRED:
                raise IncompatibleContext()
        return matched, len(value)
def match_list ( self , setting , value , context , attrs , metas ) : matched = 0 for item in value : if self . is_valid_item ( setting , item , attrs , metas ) : matched += 1 elif setting . required == ContextSetting . REQUIRED : raise IncompatibleContext ( ) return matched , len ( value )