Bases: stalker.models.link.Link
Holds information about the created versions (files) for a class:.Task
A Version holds information about the created files related to a class:.Task. So if one creates a new version for a file or a sequences of file for a Task then the information is hold in the Version instance.
| Parameters: |
|
|---|
Methods
| __init__([task, take_name, inputs, outputs, ...]) | |
| is_latest_published_version() | returns True if this is the latest published Version False otherwise |
| update_paths() | updates the path variables |
| walk_hierarchy([method]) | Walks the hierarchy of this version |
| walk_inputs([method]) | Walks the inputs of this version |
Attributes
| absolute_full_path | Returns the absolute full path of this version including the |
| absolute_path | Returns the absolute path of this version including the repository |
| children | The children Version instances which are derived from this particular Version instance. |
| created_by | The User who has created this object. |
| created_by_id | The id of the User who has created this entity. |
| created_with | |
| date_created | A datetime.datetime instance showing the creation date and time of this object. |
| date_updated | A datetime.datetime instance showing the update date and time of this object. |
| description | Description of this object. |
| entity_id | |
| entity_type | |
| extension | the extension property |
| filename | the filename property |
| full_path | The full path of the url to the link. |
| generic_data | This attribute can hold any kind of data which exists in SOM. |
| generic_text | This attribute can hold any text. |
| html_class | |
| html_style | |
| id | |
| inputs | The inputs of the current version. |
| is_published | |
| latest_published_version | Returns the last published version. |
| latest_version | returns the Version instance with the highest version number in this |
| link_id | |
| max_version_number | returns the maximum version number for this Version |
| metadata | A collection of Table objects and their associated schema constructs. |
| name | Name of this object |
| naming_parents | returns a list of parents which start from the nearest Asset, Shot |
| nice_name | the overridden nice name for Version class |
| notes | All the Notess attached to this entity. |
| original_filename | |
| outputs | The outputs of the current version. |
| parent | |
| parent_id | |
| path | the path property |
| plural_class_name | the plural name of this class |
| query | ORM-level SQL construction object. |
| tags | A list of tags attached to this object. |
| take_name | Takes in Versions are used solely for grouping individual versions together. |
| task | The Task instance that this Version is created for. |
| task_id | |
| thumbnail | |
| thumbnail_id | |
| tjp_id | returns TaskJuggler compatible id |
| to_tjp | renders a TaskJuggler compliant string used for TaskJuggler |
| type | The type of the object. |
| type_id | The id of the Type of this entity. |
| updated_by | The User who has updated this object. |
| updated_by_id | The id of the User who has updated this entity. |
| version_id | |
| version_number | The version_number attribute is read-only. |
Takes in Versions are used solely for grouping individual versions together.
The version_number attribute is read-only. Trying to change it will produce an AttributeError.
returns the Version instance with the highest version number in this series.
| Returns: | Version instance |
|---|
Returns the absolute full path of this version including the repository path of the related project
| Returns: | str |
|---|
Returns the absolute path of this version including the repository path of the related project
| Returns: | str |
|---|
returns True if this is the latest published Version False otherwise
A datetime.datetime instance showing the creation date and time of this object.
A datetime.datetime instance showing the update date and time of this object.
Description of this object.
the extension property
the filename property
The full path of the url to the link.
This attribute can hold any kind of data which exists in SOM.
This attribute can hold any text.
Name of this object
All the Notess attached to this entity.
It is a list of Note instances or an empty list, setting it to None will raise a TypeError.
the path property
the plural name of this class
A list of tags attached to this object.
It is a list of Tag instances which shows the tags of this object
returns TaskJuggler compatible id
renders a TaskJuggler compliant string used for TaskJuggler integration. Needs to be overridden in inherited classes.
The type of the object.
It is an instance of Type with a proper Type.target_entity_type.
The id of the Type of this entity. Mainly used by SQLAlchemy to create a Many-to-One relates between SimpleEntities and Types.
returns a list of parents which start from the nearest Asset, Shot or Sequence