0.22 Python bindings/Job

From MythTV Official Wiki
Jump to: navigation, search

This class adds functions for writing advanced user jobs.

Job(*args)

This can be initialized in three ways:

 Job(jobid)
   --or--
 Job(chanid, starttime)
   --or--
 Job(dictionary)

The first two provide access to an existing job, the third will create a new one. This class provides the following options: jobid, chanid, starttime, host

getComment()

getStatus()

getArgs()

Pulls the most recent values from the database

setComment(comment)

setStatus(status)

setArgs(args)

Updates database fields