(self, request_params, user=None)
Args:
            request_params: is a dict of request.GET or request.POST params
            user: couch-user object

        Retruns:
            selected or default filter value
Args:
            request_params: is a dict of request.GET or request.POST params
            user: couch-user object
Args : request_params : is a dict of request . GET or request . POST params user : couch - user object
def get_value(self, request_params, user=None):
        """
        Args:
            request_params: is a dict of request.GET or request.POST params
            user: couch-user object

        Retruns:
            selected or default filter value
        """
        kwargs = {
            REQUEST_USER_KEY: user
        }
        if self.all_required_params_are_in_context(request_params):
            kwargs.update(
                {param.name: request_params[param.name] for param in self.params if param.name in request_params}
            )
            return self.value(**kwargs)
        else:
            return self.default_value(**kwargs)
def get_value ( self , request_params , user = None ) : kwargs = { REQUEST_USER_KEY : user } if self . all_required_params_are_in_context ( request_params ) : kwargs . update ( { param . name : request_params [ param . name ] for param in self . params if param . name in request_params } ) return self . value ( * * kwargs ) else : return self . default_value ( * * kwargs )