Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
routing: Transparently convert a MultiDict containing parameters. #724
Sorry to nag once more w.r.t. the multiple values for URL building, but I think I found a way to make everybody happy. The following should allow passing in MultiDicts and receiving the desired behaviour without getting any regressions.
This allows to pass a MultiDict and get the intuitively expected result
The last step would fail before this commit (in that it would reproduce only
This zaps one of the test cases in test_basic_building to reflect the
I have no strong feelings here, but I found the point that build() is then inverse to match() a big plus. For me this is more an enhancement/sugar coating so that everything works as I would intuitively expect it.
Also if not this change, I will have to modify some of my code to use lists of values, so I thought I might try here first, for the benefit of the general public. :)
Issue history so I can keep this straight: