This class defines the structure for a series object. A series object holds information about a group (e.g., a Series) of video files (e.g., Episodes).

Series contains the following public methods:

MethodDescription
db_load_by_name() Load a record by ID / Name. Raise a RecordNotFound exception if record is not found in database.
db_load_by_num() Load a record by record number.
db_save() Save the record to the database using Insert or Update as appropriate.
db_delete() Delete this object record from the database. Raises RecordLockedError exception if record is locked and unable to be deleted.
lock_record() Lock a record. If the lock is unable to be obtained, a RecordLockedError exception is raised with the username of the lock holder passed.
unlock_record() Unlock a record.
get_note_nums() Get a list of Note numbers that belong to this Object.
duplicate() Return a copy of the object with only the record number changed.
get_episode_nums() Get a list of Episode numbers that belong to this Series.
clear() Clear all properties, resetting them to default values.

Series contains the following public properties:

PropertyDescription
owner The person responsible for creating or maintaining the Series.
keyword_group The default keyword group to be suggested for all new Episodes.
comment Description of the Object.
id ID or Name (required).
isLocked Object Is Locked?
lock_time Time of the last record lock (Read only).
number Record number (auto-incremented database field).
record_lock Username of person who has locked the record (Read only).