EBackend.CacheOfflineChange¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r/w |
the object itself |
|
revision |
r/w |
stored revision of the object |
|
state |
r/w |
an |
|
uid |
r/w |
UID of the object |
Methods¶
class |
|
class |
|
|
Details¶
- class EBackend.CacheOfflineChange¶
Holds the information about offline change for one object.
New in version 3.26.
- classmethod free(change)¶
- Parameters:
change (
object
orNone
) – anEBackend.CacheOfflineChange
Frees the change structure, previously allocated with
EBackend.CacheOfflineChange.new
() orEBackend.CacheOfflineChange.copy
().New in version 3.26.
- classmethod new(uid, revision, object, state)¶
- Parameters:
uid (
str
) – a unique object identifierstate (
EBackend.OfflineState
) – anEBackend.OfflineState
- Returns:
A new
EBackend.CacheOfflineChange
. Free it withEBackend.CacheOfflineChange.free
() when no longer needed.- Return type:
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 isNone
, then returnsNone
as well.- Return type:
New in version 3.26.