Previous topic

oyProjectManager.core.models.Version

Next topic

oyProjectManager.core.models.VersionStatusComparator

This Page

oyProjectManager.core.models.VersionableBase

Inheritance diagram of oyProjectManager.core.models.VersionableBase

class oyProjectManager.core.models.VersionableBase(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.Base

A base class for Shot and Asset classes.

It will supply the base attributes to be able to attach a Version to the Shot and Asset instances.

It doesn’t need any parameter while initialization.

It supplies only one read-only attribute called versions which is a list and holds Version instances.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

Methods

__init__(**kwargs) A simple constructor that allows initialization from kwargs.
query()

Attributes

description
id
metadata A collection of Table objects and their associated schema constructs.
project the Project instance which this object is related to
project_id
thumbnail_full_path returns the thumbnail full path for this versionable
versionable_type
versions the Version instances attached to this object
versions[source]

the Version instances attached to this object

It is a read-only attribute

project[source]

the Project instance which this object is related to

It is a read-only attribute

thumbnail_full_path[source]

returns the thumbnail full path for this versionable