Bases: stalker.models.link.Link, stalker.models.mixins.StatusMixin
Holds information about the created versions (files) for a class:~stalker.models.task.Task
A Version holds information about the created files related to a class:~stalker.models.task.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, ...]) | |
update_paths() | updates the path variables |
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 |
created_by | The User who has created this object. |
created_by_id | The id of the User who has created |
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. |
id | |
inputs | The inputs of the current version. |
is_published | |
link_id | |
max_version_number | returns the maximum version number for this Version |
metadata | A collection of Table objects and their associated schema |
name | Name of this object |
nice_name | Nice name of this object. |
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. |
status | The current status of the object. |
status_id | |
status_list | |
status_list_id | |
tags | A list of tags attached to this object. |
take_name | Takes in Versions are used solely for grouping individual |
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 |
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.
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.
Name of this object
Nice name of this object.
It has the same value with the name (contextually) but with a different format like, all the white spaces replaced by underscores (“_”), all the CamelCase form will be expanded by underscore (_) characters and it is always lower case.
All the Notess attached to this entity.
It is a list of Note instances or an empty list, setting it None will raise a TypeError.
the path property
the plural name of this class
The current status of the object.
It is a Status instance which is one of the Statuses stored in the status_list attribute of this object.
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 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.