This class defines the features common among all classes in the Data Objects component group. The Data Object classes will inherit from this base class.

DataObject contains the following public methods:

MethodDescription
clear() Clear all properties, resetting them to default values.
duplicate() Return a copy of the object with only the record number changed.
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.
get_episode_nums() Get a list of Episode numbers that belong to this Series.

DataObject contains the following public properties:

PropertyDescription
number Record number (auto-incremented database field).
id ID or Name (required).
comment Description of the Object.
record_lock Username of person who has locked the record (Read only).
lock_time Time of the last record lock (Read only).
isLocked Object Is Locked?