djitemdata

This module holds jukeboxcore.gui.treemodel.ItemData subclasses that represent data in our database, e.g. a Project, Sequence etc

jukeboxcore.gui.djitemdata.prj_name_data(project, role)[source]

Return the data for name

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_short_data(project, role)[source]

Return the data for short

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the short

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_path_data(project, role)[source]

Return the data for path

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the path

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_created_data(project, role)[source]

Return the data for created

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the created

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_semester_data(project, role)[source]

Return the data for semester

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the semester

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_fps_data(project, role)[source]

Return the data for fps

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the fps

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_resolution_data(project, role)[source]

Return the data for resolution

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the resolution

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_scale_data(project, role)[source]

Return the data for scale

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the scale

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.prj_status_data(project, role)[source]

Return the data for status

Parameters:
  • project (jukeboxcore.djadapter.models.Project) – the project that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the status

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.ProjectItemData(project)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents a project

Constructs a new item data for the project

Parameters:project (jukeboxcore.djadapter.models.Project) – the project to represent
Raises:None
columns = [<function prj_name_data at 0x0000000004C71748>, <function prj_short_data at 0x0000000004C717B8>, <function prj_path_data at 0x0000000004C71828>, <function prj_created_data at 0x0000000004C71898>, <function prj_semester_data at 0x0000000004C71908>, <function prj_status_data at 0x0000000004C71AC8>, <function prj_resolution_data at 0x0000000004C719E8>, <function prj_fps_data at 0x0000000004C71978>, <function prj_scale_data at 0x0000000004C71A58>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the project

Returns:the project
Return type:jukeboxcore.djadapter.models.Project
Raises:None
jukeboxcore.gui.djitemdata.seq_name_data(seq, role)[source]

Return the data for name

Parameters:
  • seq (jukeboxcore.djadapter.models.Sequence) – the sequence that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.seq_description_data(seq, role)[source]

Return the data for description

Parameters:
  • seq (jukeboxcore.djadapter.models.Sequence) – the sequence that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the description

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.SequenceItemData(sequence)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents a sequence

Constructs a new item data for the sequence

Parameters:sequence (jukeboxcore.djadapter.models.Sequence) – the sequence to represent
Raises:None
columns = [<function seq_name_data at 0x0000000004C71E48>, <function seq_description_data at 0x0000000004C71EB8>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the sequence

Returns:the sequence
Return type:jukeboxcore.djadapter.models.Sequence
Raises:None
jukeboxcore.gui.djitemdata.shot_name_data(shot, role)[source]

Return the data for name

Parameters:
  • shot (jukeboxcore.djadapter.models.Shot) – the shot that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.shot_description_data(shot, role)[source]

Return the data for description

Parameters:
  • shot (jukeboxcore.djadapter.models.Shot) – the shot that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the description

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.shot_duration_data(shot, role)[source]

Return the data for duration

Parameters:
  • shot (jukeboxcore.djadapter.models.Shot) – the shot that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the duration

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.shot_start_data(shot, role)[source]

Return the data for startframe

Parameters:
  • shot (jukeboxcore.djadapter.models.Shot) – the shot that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the start

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.shot_end_data(shot, role)[source]

Return the data for endframe

Parameters:
  • shot (jukeboxcore.djadapter.models.Shot) – the shot that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the end

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.ShotItemData(shot)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents a shot

Constructs a new item data for the shot

Parameters:shot (jukeboxcore.djadapter.models.Shot) – the shot to represent
Raises:None
columns = [<function shot_name_data at 0x00000000050BA278>, <function shot_description_data at 0x00000000050BA2E8>, <function shot_duration_data at 0x00000000050BA358>, <function shot_start_data at 0x00000000050BA3C8>, <function shot_end_data at 0x00000000050BA438>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the shot

Returns:the shot
Return type:jukeboxcore.djadapter.models.Shot
Raises:None
jukeboxcore.gui.djitemdata.task_name_data(task, role)[source]

Return the data for name

Parameters:
  • task (jukeboxcore.djadapter.models.Task) – the task that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.task_short_data(task, role)[source]

Return the data for short name

Parameters:
  • task (jukeboxcore.djadapter.models.Task) – the task that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the short name

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.TaskItemData(task)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents a task

Constructs a new item data for the task

Parameters:task (jukeboxcore.djadapter.models.Task) – the task to represent
Raises:None
columns = [<function task_name_data at 0x00000000050BA7B8>, <function task_short_data at 0x00000000050BA828>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the task

Returns:the task
Return type:jukeboxcore.djadapter.models.Task
Raises:None
jukeboxcore.gui.djitemdata.taskfile_path_data(file_, role)[source]

Return the data for path

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the path

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.taskfile_user_data(file_, role)[source]

Return the data for user

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the user

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.taskfile_created_data(file_, role)[source]

Return the data for created date

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the created date

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.taskfile_updated_data(file_, role)[source]

Return the data for updated date

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the updated date

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.taskfile_version_data(file_, role)[source]

Return the data for version

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the version

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.taskfile_rtype_data(file_, role)[source]

Return the data for rtype

Parameters:
  • file (jukeboxcore.djadapter.models.File) – the file that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the releasetype

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.TaskFileItemData(taskfile)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents a taskfile

Constructs a new item data for the taskfile

Parameters:taskfile (jukeboxcore.djadapter.models.TaskFile) – the taskfile to represent
Raises:None
columns = [<function taskfile_version_data at 0x00000000050BAD68>, <function taskfile_rtype_data at 0x00000000050BADD8>, <function taskfile_path_data at 0x00000000050BABA8>, <function taskfile_user_data at 0x00000000050BAC18>, <function taskfile_created_data at 0x00000000050BAC88>, <function taskfile_updated_data at 0x00000000050BACF8>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the taskfile

Returns:the taskfile
Return type:jukeboxcore.djadapter.models.TaskFile
Raises:None
jukeboxcore.gui.djitemdata.atype_name_data(atype, role)[source]

Return the data for name

Parameters:
  • atype (jukeboxcore.djadapter.models.Atype) – the assettype that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.atype_description_data(atype, role)[source]

Return the data for description

Parameters:
  • atype (jukeboxcore.djadapter.models.Atype) – the assettype that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the description

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.AtypeItemData(atype)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents an assettype

Constructs a new item data for the assettype

Parameters:atype (jukeboxcore.djadapter.models.Atype) – the assettype to represent
Raises:None
columns = [<function atype_name_data at 0x0000000004CC3198>, <function atype_description_data at 0x0000000004CC3208>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the assettype

Returns:the shot
Return type:jukeboxcore.djadapter.models.Atype
Raises:None
jukeboxcore.gui.djitemdata.asset_name_data(asset, role)[source]

Return the data for name

Parameters:
  • asset (jukeboxcore.djadapter.models.Asset) – the asset that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the name

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.asset_description_data(asset, role)[source]

Return the data for description

Parameters:
  • asset (jukeboxcore.djadapter.models.Asset) – the asset that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the description

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.AssetItemData(asset)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item Data for jukeboxcore.gui.treemodel.TreeItem that represents an asset

Constructs a new item data for the asset

Parameters:asset (jukeboxcore.djadapter.models.Asset) – the asset to represent
Raises:None
columns = [<function asset_name_data at 0x0000000004CC3588>, <function asset_description_data at 0x0000000004CC35F8>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the asset

Returns:the asset
Return type:jukeboxcore.djadapter.models.Asset
Raises:None
jukeboxcore.gui.djitemdata.note_content_data(note, role)[source]

Return the data for content

Parameters:
  • note (jukeboxcore.djadapter.models.Note) – the note that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the created date

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.note_user_data(note, role)[source]

Return the data for user

Parameters:
  • note (jukeboxcore.djadapter.models.Note) – the note that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the created date

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.note_created_data(note, role)[source]

Return the data for created date

Parameters:
  • note (jukeboxcore.djadapter.models.Note) – the note that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the created date

Return type:

depending on role

Raises:

None

jukeboxcore.gui.djitemdata.note_updated_data(note, role)[source]

Return the data for updated date

Parameters:
  • note (jukeboxcore.djadapter.models.Note) – the note that holds the data
  • role (QtCore.Qt.ItemDataRole) – item data role
Returns:

data for the updated date

Return type:

depending on role

Raises:

None

class jukeboxcore.gui.djitemdata.NoteItemData(note)[source]

Bases: jukeboxcore.gui.treemodel.ItemData

Item data for jukeboxcore.gui.treemodel.TreeITem that represents a note.

Constructs a new item data for the note

Parameters:note (jukeboxcore.djadapter.models.Note) – the note to represent
Raises:None
columns = [<function note_content_data at 0x0000000004CC3978>, <function note_user_data at 0x0000000004CC39E8>, <function note_created_data at 0x0000000004CC3A58>, <function note_updated_data at 0x0000000004CC3AC8>]
column_count()[source]

Return the number of columns that can be queried for data

Returns:the number of columns
Return type:int
Raises:None
data(column, role)[source]

Return the data for the specified column and role

The column addresses one attribute of the data.

Parameters:
  • column (int) – the data column
  • role (QtCore.Qt.ItemDataRole) – the data role
Returns:

data depending on the role

Return type:

Raises:

None

internal_data()[source]

Return the note

Returns:the note
Return type:jukeboxcore.djadapter.models.Note
Raises:None
flags(column)[source]

Return the item flags for the item

This returns editable True to enable custom editors.

Returns:the item flags
Return type:QtCore.Qt.ItemFlags
Raises:None