This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a bulkloader file. Also updated the set quota page to stop erro…
…ring out on new installs.
- Loading branch information
Paddy Foran
committed
Aug 10, 2011
1 parent
0b0c2fd
commit 7329b8a
Showing
2 changed files
with
160 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,156 @@ | |||
# 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 | |||
|
|||
transformers: | |||
|
|||
- kind: DeviceData | |||
connector: # TODO: Choose a connector here: csv, simplexml, etc... | |||
connector_options: | |||
# TODO: Add connector options here--these are specific to each connector. | |||
property_map: | |||
- property: __key__ | |||
external_name: key | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: address | |||
external_name: address | |||
# Type: String Stats: 69958 properties of this type in this kind. | |||
|
|||
- property: default | |||
external_name: default | |||
# Type: Boolean Stats: 69958 properties of this type in this kind. | |||
import_transform: transform.regexp_bool('true', re.IGNORECASE) | |||
|
|||
- property: name | |||
external_name: name | |||
# Type: String Stats: 69958 properties of this type in this kind. | |||
|
|||
- property: user | |||
external_name: user | |||
# Type: Key Stats: 69958 properties of this type in this kind. | |||
import_transform: transform.create_foreign_key('TODO: fill in Kind name') | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
|
|||
- kind: LinkData | |||
connector: # TODO: Choose a connector here: csv, simplexml, etc... | |||
connector_options: | |||
# TODO: Add connector options here--these are specific to each connector. | |||
property_map: | |||
- property: __key__ | |||
external_name: key | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: comment | |||
external_name: comment | |||
# Type: Text Stats: 193267 properties of this type in this kind. | |||
import_transform: db.Text | |||
|
|||
- property: date | |||
external_name: date | |||
# Type: Date/Time Stats: 197062 properties of this type in this kind. | |||
import_transform: transform.import_date_time('%Y-%m-%dT%H:%M:%S') | |||
export_transform: transform.export_date_time('%Y-%m-%dT%H:%M:%S') | |||
|
|||
- property: instance | |||
external_name: instance | |||
# Type: String Stats: 197062 properties of this type in this kind. | |||
|
|||
- property: received | |||
external_name: received | |||
# Type: Boolean Stats: 185232 properties of this type in this kind. | |||
import_transform: transform.regexp_bool('true', re.IGNORECASE) | |||
|
|||
- property: receiver | |||
external_name: receiver | |||
# Type: Key Stats: 197062 properties of this type in this kind. | |||
import_transform: transform.create_foreign_key('TODO: fill in Kind name') | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: sender | |||
external_name: sender | |||
# Type: Key Stats: 197062 properties of this type in this kind. | |||
import_transform: transform.create_foreign_key('TODO: fill in Kind name') | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: url | |||
external_name: url | |||
# Type: String Stats: 197062 properties of this type in this kind. | |||
|
|||
|
|||
- kind: Link | |||
connector: # TODO: Choose a connector here: csv, simplexml, etc... | |||
connector_options: | |||
# TODO: Add connector options here--these are specific to each connector. | |||
property_map: | |||
- property: __key__ | |||
external_name: key | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: author | |||
external_name: author | |||
# Type: User Stats: 105074 properties of this type in this kind. | |||
import_transform: transform.none_if_empty(users.User) # Assumes email address | |||
|
|||
- property: content | |||
external_name: content | |||
# Type: String Stats: 105074 properties of this type in this kind. | |||
|
|||
- property: date | |||
external_name: date | |||
# Type: Date/Time Stats: 105074 properties of this type in this kind. | |||
import_transform: transform.import_date_time('%Y-%m-%dT%H:%M:%S') | |||
export_transform: transform.export_date_time('%Y-%m-%dT%H:%M:%S') | |||
|
|||
|
|||
- kind: UserData | |||
connector: # TODO: Choose a connector here: csv, simplexml, etc... | |||
connector_options: | |||
# TODO: Add connector options here--these are specific to each connector. | |||
property_map: | |||
- property: __key__ | |||
external_name: key | |||
export_transform: transform.key_id_or_name_as_string | |||
|
|||
- property: display_name | |||
external_name: display_name | |||
# Type: String Stats: 17278 properties of this type in this kind. | |||
|
|||
- property: joined | |||
external_name: joined | |||
# Type: Date/Time Stats: 17278 properties of this type in this kind. | |||
import_transform: transform.import_date_time('%Y-%m-%dT%H:%M:%S') | |||
export_transform: transform.export_date_time('%Y-%m-%dT%H:%M:%S') | |||
|
|||
- property: last_seen | |||
external_name: last_seen | |||
# Type: Date/Time Stats: 17278 properties of this type in this kind. | |||
import_transform: transform.import_date_time('%Y-%m-%dT%H:%M:%S') | |||
export_transform: transform.export_date_time('%Y-%m-%dT%H:%M:%S') | |||
|
|||
- property: user | |||
external_name: user | |||
# Type: User Stats: 17278 properties of this type in this kind. | |||
import_transform: transform.none_if_empty(users.User) # Assumes email address | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters