src/cm/utils/misc.py
author raph
Tue, 06 Apr 2010 17:08:33 +0200
changeset 242 4e454aacae50
parent 0 40c8f766c9b8
permissions -rw-r--r--
add eggs directory (fixes #18)


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)