AsyncRequest

Inheritance:

Methods of AsyncRequest:

Methods of DirectObject:

__init__
def __init__(self, air, replyToChannelId=None, timeout=DefaultTimeout)

air is the AI Respository. replyToChannelId may be an avatarId, an accountId, or a channelId. timeout is how many seconds to wait before aborting the request.

_checkCompletion
def _checkCompletion(self, name, context, distObj)

This checks whether we have all the needed objects and calls finish() if we do.

_doCreateObject
def _doCreateObject(self, name, className, values, doId)

Undocumented function.

askForObject
def askForObject(self, doId, context=None)

Request an already created object, i.e. read from database.

askForObjectField
def askForObjectField(self, dclassName, fieldName, doId, key=None, context=None)

Request an already created object, i.e. read from database.

createObject
def createObject(self, name, className, context=None, values=None)

Create a new database object. You can get the doId from within your self.finish() function.

delete
def delete(self)

Undocumented function.

finish
def finish(self)

This is the function that gets called when all of the needed objects are in (i.e. all the askForObject and createObject requests have been satisfied). If the other requests timeout, finish will not be called.

timeout
def timeout(self, task)

If this is called we have not gotten the needed objects in the timeout period. Derived classes should inform the user or whomever and then call this base method to cleanup.

__init__
def __init__(self)

Undocumented function.

accept
def accept(self, event, method, extraArgs=[])

Undocumented function.

acceptOnce
def acceptOnce(self, event, method, extraArgs=[])

Undocumented function.

ignore
def ignore(self, event)

Undocumented function.

ignoreAll
def ignoreAll(self)

Undocumented function.

isAccepting
def isAccepting(self, event)

Undocumented function.

isIgnoring
def isIgnoring(self, event)

Undocumented function.