Record Class

The db.Record class constitutes a full record in the database. In contrast to db.model.Flight, it contains full information about pilots, planes and launch methods instead of references to other database tables.

Interface

class pysk.db.Record(flight=None, plane=None, pilot=None, copilot=None, towplane=None, towpilot=None, launch_method=None)

Record containing all information stored in database

Parameters:
  • flight (Flight) – Flight instance.
  • plane (Airplane) – Plane instance.
  • pilot (Pilot) – Pilot instance.
  • copilot (Pilot) – Pilot instance.
  • towplane (Airplane) – Airplane instance.
  • towpilot (Pilot) – Pilot of towplane.
  • launch_method (LaunchMethod) – LaunchMethod instance.
__str__()

Convert instance to string

Returns:String with core information
updateFlight()

Update flight information based on other attributes

Raise:
RecordError if critical parameters are missing.
Returns:List with warning messages.

Exceptions

class pysk.db.record.RecordError(message=None)

Exception raised by some methods in Record

Parameters:message (str) – Message string containing error message