@staticmethod
    def load(collada, localscope, node):
        colornode = node.find( '%s/%s/%s'%(tag('technique_common'),tag('directional'),
                                           tag('color') ) )
        if colornode is None:
            raise DaeIncompleteError('Missing color for directional light')
        try:
            color = tuple([float(v) for v in colornode.text.split()])
        except __HOLE__ as ex:
            raise DaeMalformedError('Corrupted color values in light definition')
        return DirectionalLight(node.get('id'), color, xmlnode = node)
dataset/ETHPy150Open pycollada/pycollada/collada/light.py/DirectionalLight.load