src/cm/utils/misc.py
author gibus
Mon, 15 Jul 2013 15:25:58 +0200
changeset 524 322d0feea350
parent 0 40c8f766c9b8
permissions -rw-r--r--
Update thread_box button to new design (horizontal mirror of unthread_box)


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)