EcohydroLib  1.29
Public Member Functions | Public Attributes | List of all members
ecohydrolib.context.Context Class Reference
Inheritance diagram for ecohydrolib.context.Context:

Public Member Functions

def __init__
 Constructor for Context class. More...
 
def __init__
 Constructor for Context class. More...
 

Public Attributes

 projectDir
 
 config
 

Constructor & Destructor Documentation

def ecohydrolib.context.Context.__init__ (   self,
  projectDir,
  configFile = None 
)

Constructor for Context class.

Parameters
projectDirPath of the project whose metadata store is to be read from
configFilePath of ecohydrolib configuration file to use. If none, will attempt to read configuration from a file named in the environment variable Context.CONFIG_FILE_ENV

IOError if project directory path is not a directory IOError if project directory is not writable MetadataVersionError if a version already exists in the metadata store and is different than GenericMetadata._ecohydrolibVersion EnvironmentError if configuration file name could not be read from the environment IOError if configuration file could not be read

def ecohydrolib.context.Context.__init__ (   self,
  projectDir,
  configFile = None 
)

Constructor for Context class.

Parameters
projectDirPath of the project whose metadata store is to be read from
configFilePath of ecohydrolib configuration file to use. If none, will attempt to read configuration from a file named in the environment variable Context.CONFIG_FILE_ENV

IOError if project directory path is not a directory IOError if project directory is not writable MetadataVersionError if a version already exists in the metadata store and is different than GenericMetadata._ecohydrolibVersion EnvironmentError if configuration file name could not be read from the environment IOError if configuration file could not be read

Member Data Documentation

ecohydrolib.context.Context.config
ecohydrolib.context.Context.projectDir

The documentation for this class was generated from the following file: