This commit is contained in:
Florian Bruhin 2018-03-12 08:51:08 +01:00
parent a6885a0d41
commit 8c5b7bcd03
2 changed files with 6 additions and 2 deletions

View File

@ -1651,6 +1651,7 @@ class Key(BaseType):
"""A name of a key."""
def from_obj(self, value):
"""Make sure key sequences are always normalized."""
return str(keyutils.KeySequence.parse(value))
def to_py(self, value):

View File

@ -537,8 +537,11 @@ class FromObjType(configtypes.BaseType):
"""Config type to test from_obj for List/Dict."""
def from_obj(self, obj):
return int(obj)
def from_obj(self, value):
return int(value)
def to_py(self, value):
return value
class TestList: