(self, setting, value, attrs, metas)
Match a single value
Match a single value
Match a single value
def match_value(self, setting, value, attrs, metas):
        """Match a single value """
        if value[1] < 0:
            return 0, 0

        if self._var_exists(setting, value, attrs, metas):
            return 1, 1
        elif setting.required == setting.OPTIONAL:
            return 0, 1
        else:
            raise IncompatibleContext()
def match_value ( self , setting , value , attrs , metas ) : if value [ 1 ] < 0 : return 0 , 0 if self . _var_exists ( setting , value , attrs , metas ) : return 1 , 1 elif setting . required == setting . OPTIONAL : return 0 , 1 else : raise IncompatibleContext ( )