src/reportlab/lib/attrmap.py
branchpy33
changeset 3794 398ea04239b5
parent 3791 fb8d3d2f8704
child 4252 fe660f227cac
equal deleted inserted replaced
3793:cc3f9cc828f7 3794:398ea04239b5
   129             obj._attrMap = A.clone()
   129             obj._attrMap = A.clone()
   130 
   130 
   131 def _findObjectAndAttr(src, P):
   131 def _findObjectAndAttr(src, P):
   132     '''Locate the object src.P for P a string, return parent and name of attribute
   132     '''Locate the object src.P for P a string, return parent and name of attribute
   133     '''
   133     '''
   134     P = string.split(P, '.')
   134     P = P.split('.')
   135     if len(P) == 0:
   135     if len(P) == 0:
   136         return None, None
   136         return None, None
   137     else:
   137     else:
   138         for p in P[0:-1]:
   138         for p in P[0:-1]:
   139             src = getattr(src, p)
   139             src = getattr(src, p)