swimlane.core.resources.app_revision module

class swimlane.core.resources.app_revision.AppRevision(*args, **kwargs)[source]

Bases: RevisionBase

Encapsulates a single revision returned from a History lookup.

Attributes
modified_date

The date this app revision was created.

revision_number

The revision number of this app revision.

status

Indicates whether this revision is the current revision or a historical revision.

user

The user that saved this revision of the record.

version

The App corresponding to the data contained in this app revision.

SEPARATOR = ' --- '
get_cache_index_keys()[source]

Returns cache index keys for this AppRevision.

static get_unique_id(app_id, revision_number)[source]

Returns the unique identifier for the given AppRevision.

static parse_unique_id(unique_id)[source]

Returns an array containing two items: the app_id and revision number parsed from the given unique_id.

property version

Returns an App from the _raw_version info in this app revision. Lazy loaded. Overridden from base class.