document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Autogenerated bulkloader.yaml file.
  2. # You must edit this file before using it. TODO: Remove this line when
  3.  
  4. done.
  5. # At a minimum address the items marked with TODO:
  6. # * Fill in connector and connector_options
  7. # * Review the property_map.
  8. # - Ensure the 'external_name' matches the name of your CSV column,
  9. # XML tag, etc.
  10. # - Check that __key__ property is what you want. Its value will
  11.  
  12. become
  13. # the key name on import, and on export the value will be the Key
  14. # object. If you would like automatic key generation on import
  15.  
  16. and
  17. # omitting the key on export, you can remove the entire __key__
  18. # property from the property map.
  19.  
  20. # If you have module(s) with your model classes, add them here. Also
  21. # change the kind properties to model_class.
  22. python_preamble:
  23. - import: base64
  24. - import: re
  25. - import: google.appengine.ext.bulkload.transform
  26. - import: google.appengine.ext.bulkload.bulkloader_wizard
  27. - import: google.appengine.ext.db
  28. - import: google.appengine.api.datastore
  29. - import: google.appengine.api.users
  30. # - import: bulk_helper
  31.  
  32. transformers:
  33.  
  34. - kind: CasillaFinal
  35. connector: csv
  36. connector_options:
  37. # TODO: Add connector options here--these are specific to each
  38.  
  39. connector.
  40. encoding: utf-8
  41. columns: from_header
  42. property_map:
  43. - property: __key__
  44. external_name: ID
  45. export_transform: transform.key_id_or_name_as_string
  46. # import_transform: bulk_helper.reverse_str_to_key
  47.  
  48. # Warning: This property is a duplicate, but with a different type.
  49. # TODO: Edit this transform so only one property with this name
  50.  
  51. remains.
  52. - property: casillaEspecial
  53. external_name: casillaEspecial
  54. # Type: String Stats: 998 properties of this type in this kind.
  55.  
  56. - property: claveEntidad
  57. external_name: claveEntidad
  58. # Type: Key Stats: 998 properties of this type in this kind.
  59. import_transform:
  60.  
  61. transform.create_foreign_key('EntidadFederativa')
  62. export_transform: transform.key_id_or_name_as_string
  63.  
  64. # Warning: This property is a duplicate, but with a different type.
  65. # TODO: Edit this transform so only one property with this name
  66.  
  67. remains.
  68. - property: claveMunicipio
  69. external_name: claveMunicipio
  70. # Type: Integer Stats: 998 properties of this type in this kind.
  71. import_transform: transform.none_if_empty(int)
  72.  
  73. # Warning: This property is a duplicate, but with a different type.
  74. # TODO: Edit this transform so only one property with this name
  75.  
  76. remains.
  77. - property: distrito
  78. external_name: distrito
  79. # Type: Integer Stats: 998 properties of this type in this kind.
  80. import_transform: transform.none_if_empty(int)
  81.  
  82. # Warning: This property is a duplicate, but with a different type.
  83. # TODO: Edit this transform so only one property with this name
  84.  
  85. remains.
  86. - property: domicilio
  87. external_name: domicilio
  88. # Type: String Stats: 998 properties of this type in this kind.
  89.  
  90. # Warning: This property is a duplicate, but with a different type.
  91. # TODO: Edit this transform so only one property with this name
  92.  
  93. remains.
  94. - property: latitud
  95. external_name: latitud
  96. # Type: String Stats: 998 properties of this type in this kind.
  97.  
  98. # Warning: This property is a duplicate, but with a different type.
  99. # TODO: Edit this transform so only one property with this name
  100.  
  101. remains.
  102. - property: letraFinal
  103. external_name: letraFinal
  104. # Type: String Stats: 998 properties of this type in this kind.
  105.  
  106. # Warning: This property is a duplicate, but with a different type.
  107. # TODO: Edit this transform so only one property with this name
  108.  
  109. remains.
  110. - property: letraInicial
  111. external_name: letraInicial
  112. # Type: String Stats: 998 properties of this type in this kind.
  113.  
  114. # Warning: This property is a duplicate, but with a different type.
  115. # TODO: Edit this transform so only one property with this name
  116.  
  117. remains.
  118. - property: longitud
  119. external_name: longitud
  120. # Type: String Stats: 998 properties of this type in this kind.
  121.  
  122. # Warning: This property is a duplicate, but with a different type.
  123. # TODO: Edit this transform so only one property with this name
  124.  
  125. remains.
  126. - property: municipio
  127. external_name: municipio
  128. # Type: String Stats: 998 properties of this type in this kind.
  129.  
  130. # Warning: This property is a duplicate, but with a different type.
  131. # TODO: Edit this transform so only one property with this name
  132.  
  133. remains.
  134. - property: referencia
  135. external_name: referencia
  136. # Type: String Stats: 998 properties of this type in this kind.
  137.  
  138. # Warning: This property is a duplicate, but with a different type.
  139. # TODO: Edit this transform so only one property with this name
  140.  
  141. remains.
  142. - property: seccion
  143. external_name: seccion
  144. # Type: Integer Stats: 998 properties of this type in this kind.
  145. import_transform: transform.none_if_empty(int)
  146.  
  147. # Warning: This property is a duplicate, but with a different type.
  148. # TODO: Edit this transform so only one property with this name
  149.  
  150. remains.
  151. - property: tipoCasilla
  152. external_name: tipoCasilla
  153. # Type: String Stats: 998 properties of this type in this kind.
  154.  
  155. # Warning: This property is a duplicate, but with a different type.
  156. # TODO: Edit this transform so only one property with this name
  157.  
  158. remains.
  159. - property: ubicacion
  160. external_name: ubicacion
  161. # Type: String Stats: 998 properties of this type in this kind.
');