ModelSaveRequest

from acron.core import ModelSaveRequest
class ModelSaveRequest

Bases:

Bases: AsyncTask

A class object that manages a single asynchronous model save request. Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.

Inheritance diagram

digraph inheritance311c7e7cc2 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AsyncFuture" [URL="acron.core.AsyncFuture.html#acron.core.AsyncFuture",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "AsyncFuture" [arrowsize=0.75,style=""]; "AsyncTask" [URL="acron.core.AsyncTask.html#acron.core.AsyncTask",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncFuture" -> "AsyncTask" [arrowsize=0.75,style=""]; "Namable" -> "AsyncTask" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ModelSaveRequest" [URL="acron.core.ModelSaveRequest.html#acron.core.ModelSaveRequest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncTask" -> "ModelSaveRequest" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
__init__()

Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.

property filename → Filename

Returns the filename associated with this asynchronous ModelSaveRequest.

static get_class_type()
get_filename()

Returns the filename associated with this asynchronous ModelSaveRequest.

get_loader()

Returns the Loader object associated with this asynchronous ModelSaveRequest.

get_node()

Returns the node that was passed to the constructor.

get_options()

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.

get_success()

Returns the true if the model was saved successfully, false otherwise. It is an error to call this unless done() returns true.

is_ready()

Returns true if this request has completed, false if it is still pending. When this returns true, you may retrieve the success flag with get_success(). Equivalent to req.done() and not req.cancelled().

See acron.core.AsyncFuture.done().

property loader → Loader

Returns the Loader object associated with this asynchronous ModelSaveRequest.

property node → AcronNode

Returns the node that was passed to the constructor.

property options → LoaderOptions

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.