Hey, I'd like to redirect from within a custom werkzeug routing converter, and I'm not sure what the easiest way is. I have a custom converter for UUID-style variables. Since I expect the UUID to be lowercase to guarantee unique URLs, I would like to redirect any requests for mixed-case UUIDs to the proper lowercase UUID instead. The UUID converter itself seems the best place to put this redirect, so it would work magically for all endpoints using UUID parameters. There's a method MapAdapter.make_redirect_url in routing.py, I don't think I can get to it from within the converter. I was hoping not having to replicate the whole URL-constructing code. Is there an easy way to (re)construct a canonical URL from within the converter? (Maybe it would be a worthwhile addition to have a redirect for upper/lower-case URL path elements just like the one for the canonical trailing-slash...) Thanks for any ideas, Wouter -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pocoo-libs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
