# Autogenerated bulkloader.yaml file.
# You must edit this file before using it. TODO: Remove this line when
done.
# At a minimum address the items marked with TODO:
# * Fill in connector and connector_options
# * Review the property_map.
# - Ensure the 'external_name' matches the name of your CSV column,
# XML tag, etc.
# - Check that __key__ property is what you want. Its value will
become
# the key name on import, and on export the value will be the Key
# object. If you would like automatic key generation on import
and
# omitting the key on export, you can remove the entire __key__
# property from the property map.
# If you have module(s) with your model classes, add them here. Also
# change the kind properties to model_class.
python_preamble:
- import: base64
- import: re
- import: google.appengine.ext.bulkload.transform
- import: google.appengine.ext.bulkload.bulkloader_wizard
- import: google.appengine.ext.db
- import: google.appengine.api.datastore
- import: google.appengine.api.users
# - import: bulk_helper
transformers:
- kind: CasillaFinal
connector: csv
connector_options:
# TODO: Add connector options here--these are specific to each
connector.
encoding: utf-8
columns: from_header
property_map:
- property: __key__
external_name: ID
export_transform: transform.key_id_or_name_as_string
# import_transform: bulk_helper.reverse_str_to_key
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: casillaEspecial
external_name: casillaEspecial
# Type: String Stats: 998 properties of this type in this kind.
- property: claveEntidad
external_name: claveEntidad
# Type: Key Stats: 998 properties of this type in this kind.
import_transform:
transform.create_foreign_key('EntidadFederativa')
export_transform: transform.key_id_or_name_as_string
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: claveMunicipio
external_name: claveMunicipio
# Type: Integer Stats: 998 properties of this type in this kind.
import_transform: transform.none_if_empty(int)
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: distrito
external_name: distrito
# Type: Integer Stats: 998 properties of this type in this kind.
import_transform: transform.none_if_empty(int)
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: domicilio
external_name: domicilio
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: latitud
external_name: latitud
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: letraFinal
external_name: letraFinal
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: letraInicial
external_name: letraInicial
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: longitud
external_name: longitud
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: municipio
external_name: municipio
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: referencia
external_name: referencia
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: seccion
external_name: seccion
# Type: Integer Stats: 998 properties of this type in this kind.
import_transform: transform.none_if_empty(int)
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: tipoCasilla
external_name: tipoCasilla
# Type: String Stats: 998 properties of this type in this kind.
# Warning: This property is a duplicate, but with a different type.
# TODO: Edit this transform so only one property with this name
remains.
- property: ubicacion
external_name: ubicacion
# Type: String Stats: 998 properties of this type in this kind.