def coerce_layout(thing):
        if thing is None:
            return docklayout(None)
        if isinstance(thing, basestring):
            thing = dockitem(thing)
        if isinstance(thing, (dockitem, docksplit, docktabs)):
            return docklayout(dockarea(thing))
        if isinstance(thing, dockarea):
            return docklayout(thing)
        msg = "cannot coerce '%s' to a 'docklayout'"
        raise TypeError(msg % type(thing).__name__)
Try to serve a 304 for static resources.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/dock_area.py/coerce_layout--crossover with--dataset/ETHPy150Open gratipay/gratipay.com/gratipay/utils/http_caching.py/try_to_serve_304