src/cm/utils/misc.py
author gibus
Sat, 10 Sep 2011 15:19:29 +0200
changeset 386 555135ac8900
parent 0 40c8f766c9b8
permissions -rw-r--r--
add throbber to wait until text is loaded


def update(obj, kwargs):
    """
    Update obj attributes with values from kwargs
    """
    for k,v in kwargs.items():
        if hasattr(obj,k):
            setattr(obj,k,v)