EBackend.CacheOfflineChange

Fields

Name

Type

Access

Description

object

str

r/w

the object itself

revision

str

r/w

stored revision of the object

state

EBackend.OfflineState

r/w

an EBackend.OfflineState of the object

uid

str

r/w

UID of the object

Methods

class

free (change)

class

new (uid, revision, object, state)

copy ()

Details

class EBackend.CacheOfflineChange

Holds the information about offline change for one object.

New in version 3.26.

classmethod free(change)
Parameters:

change (object or None) – an EBackend.CacheOfflineChange

Frees the change structure, previously allocated with EBackend.CacheOfflineChange.new() or EBackend.CacheOfflineChange.copy().

New in version 3.26.

classmethod new(uid, revision, object, state)
Parameters:
Returns:

A new EBackend.CacheOfflineChange. Free it with EBackend.CacheOfflineChange.free() when no longer needed.

Return type:

EBackend.CacheOfflineChange

Creates a new EBackend.CacheOfflineChange with the offline state information for the given uid.

New in version 3.26.

copy()
Returns:

Copy of the given self. Free it with EBackend.CacheOfflineChange.free() when no longer needed. If the self is None, then returns None as well.

Return type:

EBackend.CacheOfflineChange or None

New in version 3.26.