src/cm/utils/misc.py
author raph
Wed, 03 Feb 2010 15:42:56 +0100
changeset 142 9b3438382e53
parent 0 40c8f766c9b8
permissions -rw-r--r--
add base64 parameter passing mode


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)