Thank you for your responses Jason, Michael, Chris.
I was able to use the responses here to solve my problem.

As Jason pointed out and Michael Illustrated, I was able to use a
custom route predicate to check to make sure the incoming
request_params that I needed were included in any given mapping from
the route to the view config.

Since I wanted to make sure every param was present before, I needed
to change the any() to all(). This was the only change I needed to
apply on the example provided by Michael Merickel

    def custom_param_predicate(*params):
        def predicate(context, request):
            return all([param in request.params for param in params])
        return predicate


Also, on Michael's advice, I consolidated my routes and mapped them to
views according to the custom predicate.

Thank you all again for your responses,
-Gavin


On Sep 2, 10:58 am, goya bean <[email protected]> wrote:
> Hello, to avoid 'None' checking and duplicate request returning code,
> I'm trying to use (or abuse) route requests in pyramid by using
> parameters in query Strings using the 'request_param=' argument as
> seen here:http://pastebin.com/G2shq75s
> is there a way to do what I'm trying to do using routing or view
> config?
>
> Thanks,
> Gavin

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to