def _from_base_type(self, val):
    return self._enum_type(val)
Convert a base type (integer) value to an Enum value.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/msgprop.py/EnumProperty._from_base_type