MythTV 0.25-pre
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
jamu::Configuration Class Reference

List of all members.

Public Member Functions

def __init__
def setUseroptions
def displayOptions
def changeVariable
 Used to create the example configuration file "jamu-example-conf" for key in keys: # Used to create the example configuration file "jamu-example-conf" print "#%s: %s" % (key, self.config[key]) sys.exit(0)
def validate_setVariables
def __repr__

Public Attributes

 config
 program_seriesid
 args

Static Public Attributes

dictionary data_flags_table = { 'P': 'get_poster', 'B': 'get_banner', 'F': 'get_fanart', 'I': 'get_ep_image', 'E': 'get_ep_meta'}

Private Member Functions

def _initLogger
def _checkNFS
def _getMythtvDirectories
def _JanitorConflicts
def _addMythtvUserFileTypes

Detailed Description

Set defaults, apply user configuration options, validate configuration settings and display the
settings.
To view all available options run:
>>> config = Configuration()
>>> config.displayOptions()

Definition at line 1037 of file jamu.py.


Constructor & Destructor Documentation

def jamu::Configuration::__init__ (   self,
  interactive = False,
  debug = False 
)
Initialize default configuration settings

Definition at line 1044 of file jamu.py.


Member Function Documentation

def jamu::Configuration::_initLogger (   self) [private]
Sets up a logger using the logging module, returns a log object

Definition at line 1220 of file jamu.py.

def jamu::Configuration::setUseroptions (   self,
  useroptions 
)
Change variables through a user supplied configuration file
return False and exit the script if there are issues with the configuration file values

Definition at line 1238 of file jamu.py.

def jamu::Configuration::displayOptions (   self)
Display all of the configuration values. This is used to verify that the user has the
variables set as they want before running jamu live.

Definition at line 1367 of file jamu.py.

def jamu::Configuration::changeVariable (   self,
  key,
  value 
)

Used to create the example configuration file "jamu-example-conf" for key in keys: # Used to create the example configuration file "jamu-example-conf" print "#%s: %s" % (key, self.config[key]) sys.exit(0)

Change any configuration variable - caution no validation is preformed

Definition at line 1395 of file jamu.py.

def jamu::Configuration::_checkNFS (   self,
  dirs,
  ext_filter 
) [private]
Check if any of the files are on NFS shares. If they are then the user must be warned.
return True if there are at least one file is on a NFS share.
return False if no graphic files are on an NFS share.

Definition at line 1402 of file jamu.py.

def jamu::Configuration::_getMythtvDirectories (   self) [private]
Get all graphics directories found in the MythTV DB and change their corresponding
configuration values.  /media/video:/media/virtual/VB_Share/Review

Definition at line 1462 of file jamu.py.

def jamu::Configuration::_JanitorConflicts (   self) [private]
Verify that there are no conflict between the graphics directories of MythVideo and
other MythTV plugins. Write an warning message if a conflict is found.
return True when there is a conflict
return False when there is no conflict

Definition at line 1612 of file jamu.py.

def jamu::Configuration::_addMythtvUserFileTypes (   self) [private]
Add video file types to the jamu list from the "videotypes" table

Definition at line 1648 of file jamu.py.

def jamu::Configuration::validate_setVariables (   self,
  args 
)
Validate the contents of specific configuration variables
return False and exit the script if an invalid configuation value is found

Definition at line 1674 of file jamu.py.

def jamu::Configuration::__repr__ (   self)
Return a copy of the configuration variables

Definition at line 1822 of file jamu.py.


Member Data Documentation

dictionary jamu::Configuration::data_flags_table = { 'P': 'get_poster', 'B': 'get_banner', 'F': 'get_fanart', 'I': 'get_ep_image', 'E': 'get_ep_meta'} [static]

Definition at line 1217 of file jamu.py.

Definition at line 1045 of file jamu.py.

Definition at line 1045 of file jamu.py.

Definition at line 1680 of file jamu.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends