Update Manager API: Config module

class UpdateManager.Config.UpdateManagerConfig

Update Manager config file class

get(section, option, default=None)

Get an option value for a given section

Parameters:
  • section – Section name
  • option – Option name
  • default – Default value to return if option is not present in config file
getboolean(section, option, default=False)

Get a boolean option value for a given section

Parameters:
  • section – Section name
  • option – Option name
  • default – Default value to return if option is not present in config file
getfloat(section, option, default=0.0)

Get a float option value for a given section

Parameters:
  • section – Section name
  • option – Option name
  • default – Default value to return if option is not present int config file
getint(section, option, default=0)

Get an integer option value for a given section

Parameters:
  • section – Section name
  • option – Option name
  • default – Default value to return if option is not present int config file

Constants

UpdateManager.Config.SYS_CONFFILE_PATH

str(object) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

UpdateManager.Config.USER_CONFFILE_PATH

str(object) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

UpdateManager.Config.DEV_CONFFILE_PATH

str(object) -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

Table Of Contents

Previous topic

Update Manager API: BugHandler module

Next topic

Update Manager API: DistSpecific module

This Page