Module base :: Class Base
[hide private]
[frames] | no frames]

Class Base

source code


This is the base class for all other classes

Instance Methods [hide private]
 
__init__(self, name, descr=None)
create a new object
source code
 
__str__(self)
return a descriptive string for this object
source code
 
get(self, attribute)
return: value of an attribute
source code
 
set(self, attribute, value)
set the value of an attribute
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Instance Variables [hide private]
  attributes
dict of <name,value> pairs"
  description
one line this description
  name
name of this object
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, descr=None)
(Constructor)

source code 

create a new object

Parameters:
  • name - display name of this object
  • descr - human description of this object
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

return a descriptive string for this object

Overrides: object.__str__

get(self, attribute)

source code 

return: value of an attribute

Parameters:
  • attribute - name of attribute to be fetched
Returns:
(string) value (or none)

set(self, attribute, value)

source code 

set the value of an attribute

Parameters:
  • attribute - name of attribute to be fetched
  • value - value to be stored for that attribute