src/cm/utils/misc.py
author reno
Fri, 11 Dec 2009 12:03:51 +0100
changeset 59 8a2d933209aa
parent 0 40c8f766c9b8
permissions -rw-r--r--
BUG FIX : in text history tab text view frame now expands to maximum


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)