if ktype in (constants.VTYPE_STRING, constants.VTYPE_MAYBE_STRING):
if target[key] is None and ktype == constants.VTYPE_MAYBE_STRING:
+ msg = "'None' is not a valid Maybe value. Use 'VALUE_HS_NOTHING'"
+ logging.warning(msg)
+ elif (target[key] == constants.VALUE_HS_NOTHING
+ and ktype == constants.VTYPE_MAYBE_STRING):
pass
elif not isinstance(target[key], basestring):
if isinstance(target[key], bool) and not target[key]: