Back to index

enigmail  1.4.3
Public Member Functions
configobj.Builder Class Reference

List of all members.

Public Member Functions

def build
def build_List
def build_Const
def build_Dict
def build_Tuple
def build_Name
def build_Add
def build_Getattr
def build_UnarySub
def build_UnaryAdd

Detailed Description

Definition at line 170 of file configobj.py.


Member Function Documentation

def configobj.Builder.build (   self,
  o 
)

Definition at line 172 of file configobj.py.

00172 
00173     def build(self, o):
00174         m = getattr(self, 'build_' + o.__class__.__name__, None)
00175         if m is None:
00176             raise UnknownType(o.__class__.__name__)
00177         return m(o)
    

Here is the caller graph for this function:

def configobj.Builder.build_Add (   self,
  o 
)

Definition at line 205 of file configobj.py.

00205 
00206     def build_Add(self, o):
00207         real, imag = map(self.build_Const, o.getChildren())
00208         try:
00209             real = float(real)
00210         except TypeError:
00211             raise UnknownType('Add')
00212         if not isinstance(imag, complex) or imag.real != 0.0:
00213             raise UnknownType('Add')
00214         return real+imag
    

Here is the call graph for this function:

def configobj.Builder.build_Const (   self,
  o 
)

Definition at line 181 of file configobj.py.

00181 
00182     def build_Const(self, o):
00183         return o.value
    

Here is the caller graph for this function:

def configobj.Builder.build_Dict (   self,
  o 
)

Definition at line 184 of file configobj.py.

00184 
00185     def build_Dict(self, o):
00186         d = {}
00187         i = iter(map(self.build, o.getChildren()))
00188         for el in i:
00189             d[el] = i.next()
00190         return d
    

Here is the call graph for this function:

def configobj.Builder.build_Getattr (   self,
  o 
)

Definition at line 215 of file configobj.py.

00215 
00216     def build_Getattr(self, o):
00217         parent = self.build(o.expr)
00218         return getattr(parent, o.attrname)
    

Here is the call graph for this function:

def configobj.Builder.build_List (   self,
  o 
)

Definition at line 178 of file configobj.py.

00178 
00179     def build_List(self, o):
00180         return map(self.build, o.getChildren())
    

Here is the call graph for this function:

Here is the caller graph for this function:

def configobj.Builder.build_Name (   self,
  o 
)

Definition at line 194 of file configobj.py.

00194 
00195     def build_Name(self, o):
00196         if o.name == 'None':
00197             return None
00198         if o.name == 'True':
00199             return True
00200         if o.name == 'False':
00201             return False
00202         
00203         # An undefinted Name
00204         raise UnknownType('Undefined Name')
    
def configobj.Builder.build_Tuple (   self,
  o 
)

Definition at line 191 of file configobj.py.

00191 
00192     def build_Tuple(self, o):
00193         return tuple(self.build_List(o))
    

Here is the call graph for this function:

def configobj.Builder.build_UnaryAdd (   self,
  o 
)

Definition at line 222 of file configobj.py.

00222 
00223     def build_UnaryAdd(self, o):
00224         return self.build_Const(o.getChildren()[0])

Here is the call graph for this function:

def configobj.Builder.build_UnarySub (   self,
  o 
)

Definition at line 219 of file configobj.py.

00219 
00220     def build_UnarySub(self, o):
00221         return -self.build_Const(o.getChildren()[0])
    

Here is the call graph for this function:


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