

def _prepare_for_put(self, entity):
    value = self._get_user_value(entity)
    if (value is not None):
        if self._repeated:
            for subent in value:
                if (subent is not None):
                    subent._prepare_for_put()
        else:
            value._prepare_for_put()

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py LocalStructuredProperty._prepare_for_put/original