![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | __str__ |
def | MarkAsTransferred |
![]() | |
def | __init__ |
def | SetError |
def | PerformWork |
def | MarkAsRead |
def | MarkAsTransferring |
def | MarkAsTransferred |
def | MarkAsError |
![]() | |
def | __init__ |
def | PerformWork |
def | __str__ |
Public Attributes | |
request_manager | |
rows | |
content | |
count | |
![]() | |
progress_queue | |
state_namer | |
state | |
progress_key | |
progress_event | |
key_start | |
key_end | |
error | |
traceback | |
kind | |
Additional Inherited Members | |
![]() | |
string | SUCCESS = 'success' |
string | RETRY = 'retry' |
string | FAILURE = 'failure' |
Holds a unit of uploading work. A UploadWorkItem represents a number of entities that need to be uploaded to Google App Engine. These entities are encoded in the "content" field of the UploadWorkItem, and will be POST'd as-is to the server. The entities are identified by a range of numeric keys, inclusively. In the case of a resumption of an upload, or a replay to correct errors, these keys must be able to identify the same set of entities. Note that keys specify a range. The entities do not have to sequentially fill the entire range, they must simply bound a range of valid keys.
def google.appengine.tools.bulkloader.UploadWorkItem.__init__ | ( | self, | |
request_manager, | |||
progress_queue, | |||
rows, | |||
key_start, | |||
key_end, | |||
progress_key = None |
|||
) |
Initialize the UploadWorkItem instance. Args: request_manager: A RequestManager instance. progress_queue: A queue used for tracking progress information. rows: A list of pairs of a line number and a list of column values. key_start: The (numeric) starting key, inclusive. key_end: The (numeric) ending key, inclusive. progress_key: If this UploadWorkItem represents state from a prior run, then this will be the key within the progress database.
def google.appengine.tools.bulkloader.UploadWorkItem.MarkAsTransferred | ( | self | ) |
Mark this UploadWorkItem as sucessfully-sent to the server.