Package Products :: Package ZenUtils :: Module config :: Class ConfigLine
[hide private]
[frames] | no frames]

Class ConfigLine

source code

object --+
         |
        ConfigLine
Known Subclasses:

Abstract class that represents a single line in the config.

Instance Methods [hide private]
 
__init__(self, line) source code
 
__str__(self) source code
 
setting(self)
Return a key, value tuple if this line represents a setting.
source code
Class Methods [hide private]
 
parse(cls, line)
Returns an instance of cls if this class can parse this line.
source code
 
checkError(cls, line, lineno)
Checks the string for possible matches, considers why it doesn't match exactly if it's close and returns a ConfigLineError.
source code
Method Details [hide private]

__init__(self, line)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Overrides: object.__str__
(inherited documentation)

setting(self)

source code 

Return a key, value tuple if this line represents a setting. Implemented in base classes.

Decorators:
  • @property

parse(cls, line)
Class Method

source code 

Returns an instance of cls if this class can parse this line. Otherwise returns None. Implemented in base classes.

checkError(cls, line, lineno)
Class Method

source code 

Checks the string for possible matches, considers why it doesn't match exactly if it's close and returns a ConfigLineError. Implemented in base classes.