src/cm/utils/misc.py
author gibus
Mon, 14 Jan 2013 10:43:21 +0100
changeset 483 65baad712962
parent 0 40c8f766c9b8
permissions -rw-r--r--
Do not try to process custom_css if none has be defined


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)