Exemplo n.º 1
0
def _find_quoteValue(name):
    def func(L):
        if L.has_key(name): return L[name] 
        return None
    try:
        return find_locals(func)
    except:
        return None
Exemplo n.º 2
0
def _find_quoteValue(name):
    def func(L):
        if L.has_key(name): return L[name]
        return None

    try:
        return find_locals(func)
    except:
        return None
Exemplo n.º 3
0
 def _legendValues(legend,*args):
     '''return a tuple of values from the first function up the stack with isinstance(self,legend)'''
     L = find_locals(lambda L: L.get('self',None) is legend and L or None)
     return tuple([L[a] for a in args])
Exemplo n.º 4
0
 def _selfOrLegendValues(self,legend,*args):
     L = find_locals(lambda L: L.get('self',None) is legend and L or None)
     return tuple([getattr(self,a,L[a]) for a in args])
Exemplo n.º 5
0
 def _selfOrLegendValues(self, legend, *args):
     L = find_locals(lambda L: L.get('self', None) is legend and L or None)
     return tuple([getattr(self, a, L[a]) for a in args])
Exemplo n.º 6
0
 def _legendValues(legend, *args):
     '''return a tuple of values from the first function up the stack with isinstance(self,legend)'''
     L = find_locals(lambda L: L.get('self', None) is legend and L or None)
     return tuple([L[a] for a in args])