Package gofer :: Package agent :: Module config :: Class Import
[hide private]
[frames] | no frames]

Class Import

source code

Represents an import directive. @@import:<path>:<section>:<property>, where <property> is: <name>|<name>(<variable>). When the <variable> form is used, a variable is assigned the value to be used as $(var) in the conf rather than imported.

Instance Methods [hide private]
 
__init__(self, imp) source code
tuple(<imported>,<vdict>)
__call__(self)
Execute the import directive.
source code
Class Variables [hide private]
Properties allproperties = Properties()
An (empty) object representing all properties are to be imported.
Instance Variables [hide private]
str path
The path to the imported ini file.
Properties properties
The property specification.
str section
The name of the section to be imported.
Method Details [hide private]

__init__(self, imp)
(Constructor)

source code 
Parameters:
  • imp (str) - An import directive.

__call__(self)
(Call operator)

source code 

Execute the import directive.

Returns: tuple(<imported>,<vdict>)
The (imported) lines & declared (vdict) variables.