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