Created
January 27, 2013 23:04
-
-
Save ianjosephwilson/4651147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from formencode.schema import Schema | |
from formencode.validators import UnicodeString | |
from formencode import ForEach | |
from webob.multidict import MultiDict | |
d = MultiDict([('mlocales', 'en_US'), ('mlocales', 'en_GB')]) | |
assert Schema(mlocales=ForEach(UnicodeString())).to_python(d) == {'mlocales': ['en_US', 'en_GB']} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment