![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | get |
def | post |
def | InfoPage |
def | IterRows |
def | LoadEntities |
def | Load |
![]() | |
def | initialize |
def | get |
def | post |
def | head |
def | options |
def | put |
def | delete |
def | trace |
def | error |
def | redirect |
def | handle_exception |
def | new_factory |
def | get_url |
Additional Inherited Members | |
![]() | |
request | |
response | |
A handler for bulk load requests. This class contains handlers for the bulkloading process. One for GET to provide cookie information for the upload script, and one handler for a POST request to upload the entities. In the POST request, the body contains the data representing the entities' property values. The original format was a sequences of lines of comma-separated values (and is handled by the Load method). The current (version 1) format is a binary format described in the Tools and Libraries section of the documentation, and is handled by the LoadV1 method).
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.get | ( | self | ) |
Handle a GET. Just show an info page.
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.InfoPage | ( | self, | |
uri | |||
) |
Renders an information page with the POST endpoint and cookie flag. Args: uri: a string containing the request URI Returns: A string with the contents of the info page to be displayed
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.IterRows | ( | self, | |
reader | |||
) |
Yields a tuple of a line number and row for each row of the CSV data. Args: reader: a csv reader for the input data.
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.Load | ( | self, | |
kind, | |||
data | |||
) |
Parses CSV data, uses a Loader to convert to entities, and stores them. On error, fails fast. Returns a "bad request" HTTP response code and includes the traceback in the output. Args: kind: a string containing the entity kind that this loader handles data: a string containing the CSV data to load Returns: tuple (response code, output) where: response code: integer HTTP response code to return output: string containing the HTTP response body
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.LoadEntities | ( | self, | |
iter, | |||
loader, | |||
key_format = None |
|||
) |
Generates entities and loads them into the datastore. Returns a tuple of HTTP code and string reply. Args: iter: an iterator yielding pairs of a line number and row contents. key_format: a format string to convert a line number into an entity id. If None, then entity ID's are automatically generated.
def google.appengine.ext.bulkload.bulkload_deprecated.BulkLoad.post | ( | self | ) |
Handle a POST. Reads CSV data, converts to entities, and stores them.