Package conary :: Module conarycfg :: Class ConaryContext
[hide private]
[frames] | no frames]

Class ConaryContext

source code

lib.cfg._Config --+        
                  |        
 lib.cfg.ConfigFile --+    
                      |    
  lib.cfg.ConfigSection --+
                          |
                         ConaryContext

Conary uses context to let the value of particular config parameters be set based on a keyword that can be set at the command line. Configuartion values that are set in a context are overridden by the values in the context that have been set. Values that are unset in the context do not override the default config values.

Nested Classes [hide private]
  buildFlavor
  buildLabel
  entitlement
  excludeTroves
  fullVersions
  fullFlavors
  localRollbacks
  keepRequired
  quiet
  pinTroves
  shortenGroupFlavors
  conaryProxy
  proxy
  repositoryMap
  showLabels
  showComponents
  signatureKey
  signatureKeyMap
  user
Instance Methods [hide private]
 
_resetSigMap(self) source code
 
__init__(self, *args, **kw) source code
 
_writeKey(self, out, cfgItem, value, options) source code

Inherited from lib.cfg.ConfigSection: getDisplayOption, getParent, includeConfigFile

Inherited from lib.cfg.ConfigFile: configKey, configLine, ignoreUrlIncludes, isUrl, limitToKeys, read, readObject, readUrl, setIgnoreErrors

Inherited from lib.cfg.ConfigFile (private): _getProxies, _openPath, _openUrl

Inherited from lib.cfg._Config: __contains__, __getitem__, __setitem__, addAlias, addConfigOption, addDirective, addListener, display, displayKey, getDefaultValue, isDefault, items, iteritems, iterkeys, itervalues, keys, resetToDefault, setDisplayOptions, setValue, store, storeKey, values, writeToFile

Inherited from lib.cfg._Config (private): _initDisplayOptions, _write

Class Methods [hide private]
Class Variables [hide private]
  archDirs = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2d8...
  autoLoadRecipes = <conary.lib.cfgtypes.CfgList object at 0x2b2...
  autoResolve = (<class 'conary.lib.cfgtypes.CfgBool'>, False)
  autoResolvePackages = (<class 'conary.lib.cfgtypes.CfgBool'>, ...
  buildPath = (<class 'conary.lib.cfgtypes.CfgPath'>, '~/conary/...
  cleanAfterCook = (<class 'conary.lib.cfgtypes.CfgBool'>, True)
  commitRelativeChangeset = (<class 'conary.lib.cfgtypes.CfgBool...
  componentDirs = (<conary.lib.cfgtypes.CfgLineList object at 0x...
  configComponent = (<class 'conary.lib.cfgtypes.CfgBool'>, True)
  contact = None
  context = None
  dbPath = '/var/lib/conarydb'
  debugExceptions = (<class 'conary.lib.cfgtypes.CfgBool'>, False)
  debugRecipeExceptions = (<class 'conary.lib.cfgtypes.CfgBool'>...
  defaultMacros = (<conary.lib.cfgtypes.CfgLineList object at 0x...
  emergeUser = (<class 'conary.lib.cfgtypes.CfgType'>, 'emerge')
  enforceManagedPolicy = (<class 'conary.lib.cfgtypes.CfgBool'>,...
  entitlementDirectory = (<class 'conary.lib.cfgtypes.CfgPath'>,...
  environment = <conary.lib.cfgtypes.CfgDict object at 0x2b2d808...
  flavor = CfgList(CfgFlavor)
  flavorPreferences = <conary.lib.cfgtypes.CfgList object at 0x2...
  installLabelPath = <conary.lib.cfgtypes.CfgLineList object at ...
  interactive = (<class 'conary.lib.cfgtypes.CfgBool'>, False)
  logFile = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80...
  lookaside = (<class 'conary.lib.cfgtypes.CfgPath'>, '~/conary/...
  macros = CfgDict(CfgString)
  mirrorDirs = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2...
  name = None
  policyDirs = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2...
  pubRing = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80...
  uploadRateLimit = (<class 'conary.lib.cfgtypes.CfgInt'>, 0)
  downloadRateLimit = (<class 'conary.lib.cfgtypes.CfgInt'>, 0)
  recipeTemplate = None
  resolveLevel = (<class 'conary.lib.cfgtypes.CfgInt'>, 2)
  root = (<class 'conary.lib.cfgtypes.CfgPath'>, '/')
  recipeTemplateDirs = (<conary.lib.cfgtypes.CfgLineList object ...
  searchPath = <conary.lib.cfgtypes.CfgLineList object at 0x2b2d...
  siteConfigPath = (<conary.lib.cfgtypes.CfgLineList object at 0...
  sourceSearchDir = (<class 'conary.lib.cfgtypes.CfgPath'>, '.')
  threaded = (<class 'conary.lib.cfgtypes.CfgBool'>, True)
  tmpDir = (<class 'conary.lib.cfgtypes.CfgPath'>, '/var/tmp')
  trustThreshold = (<class 'conary.lib.cfgtypes.CfgInt'>, 0)
  trustedKeys = (<conary.lib.cfgtypes.CfgList object at 0x2b2d80...
  updateThreshold = (<class 'conary.lib.cfgtypes.CfgInt'>, 15)
  useDirs = (<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80...
  baseClassDir = (<class 'conary.lib.cfgtypes.CfgPath'>, '/usr/s...

Inherited from lib.cfg._Config (private): _cfgTypes, _keyLocation, _optionParams

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
Overrides: lib.cfg.ConfigSection.__init__

_writeKey(self, out, cfgItem, value, options)

source code 
Overrides: lib.cfg._Config._writeKey

Class Variable Details [hide private]

archDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/etc/conary/arch', '/etc/conary/distro/arch', '~/.conary/arch'))

autoLoadRecipes

Value:
CfgList(CfgFlavor)

autoResolvePackages

Value:
(<class 'conary.lib.cfgtypes.CfgBool'>, True)

buildPath

Value:
(<class 'conary.lib.cfgtypes.CfgPath'>, '~/conary/builds')

commitRelativeChangeset

Value:
(<class 'conary.lib.cfgtypes.CfgBool'>, True)

componentDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/etc/conary/components',
  '/etc/conary/distro/components',
  '~/.conary/components'))

debugRecipeExceptions

Value:
(<class 'conary.lib.cfgtypes.CfgBool'>, False)

defaultMacros

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/etc/conary/macros', '/etc/conary/macros.d/*', '~/.conary/macros'))

enforceManagedPolicy

Value:
(<class 'conary.lib.cfgtypes.CfgBool'>, True)

entitlementDirectory

Value:
(<class 'conary.lib.cfgtypes.CfgPath'>, '/etc/conary/entitlements')

environment

Value:
CfgDict(CfgString)

flavorPreferences

Value:
CfgList(CfgFlavor)

installLabelPath

Value:
CfgLineList(CfgLabel, listType= CfgLabelList)

logFile

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/var/log/conary', '~/.conary/log'))

lookaside

Value:
(<class 'conary.lib.cfgtypes.CfgPath'>, '~/conary/cache')

mirrorDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('~/.conary/mirrors',
  '/etc/conary/distro/mirrors',
  '/etc/conary/mirrors'))

policyDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/usr/lib/conary/policy', '/etc/conary/policy', '~/.conary/policy'))

pubRing

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ['/home/synccvs/.gnupg/pubring.gpg', '/etc/conary/pubring.gpg'])

recipeTemplateDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('~/.conary/recipeTemplates', '/etc/conary/recipeTemplates'))

searchPath

Value:
CfgLineList(CfgSearchPathItem)

siteConfigPath

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/etc/conary/site', '/etc/conary/distro/site', '~/.conary/site'))

trustedKeys

Value:
CfgList(CfgString), []

useDirs

Value:
(<conary.lib.cfgtypes.CfgLineList object at 0x2b2d80782190>,
 ('/etc/conary/use', '/etc/conary/distro/use', '~/.conary/use'))

baseClassDir

Value:
(<class 'conary.lib.cfgtypes.CfgPath'>,
 '/usr/share/conary/baseclasses')