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

Class Properties

source code

Import property specification.

Instance Methods [hide private]
 
__init__(self, properties=()) source code
bool
isplain(self, property)
Get whether a property is plain and is to be imported.
source code
str
var(self, property)
Get the property's declared variable name.
source code
bool
empty(self)
Get whether the object is empty.
source code
 
__iter__(self) source code
 
__len__(self) source code
Instance Variables [hide private]
regex.pattern pattern = re.compile(r'([^\(]+)(\()([^\)]+)(\))')
The regex for property specification.
[str,..] plain
The list of plan properties to import.
dict vdict
The variable dictionary.
Method Details [hide private]

__init__(self, properties=())
(Constructor)

source code 
Parameters:
  • properties ([str,..]) - A list of property specifications.

isplain(self, property)

source code 

Get whether a property is plain and is to be imported.

Parameters:
  • property (str) - A property name.
Returns: bool
True when property is to be imported.

var(self, property)

source code 

Get the property's declared variable name.

Parameters:
  • property (str) - A property name.
Returns: str
The variable name declared for the property or None when not declared.

empty(self)

source code 

Get whether the object is empty.

Returns: bool
True no properties defined.