def loadCurve(self):
    if hasattr(self, 'curve'):
        raise ValueError(('CurveResource already has a curve %r' % self.curve))
    pointsFile = self.graph.value(self.uri, L9['pointsFile'])
    self.curve = Curve(self.uri, pointsStorage=('file' if pointsFile else 'graph'))
    if hasattr(self.graph, 'addHandler'):
        self.graph.addHandler(self.pointsFromGraph)
    else:
        self.pointsFromGraph()
def loadCurve(self):
    if hasattr(self, 'curve'):
        raise ValueError(('CurveResource already has a curve %r' % self.curve))
    pointsFile = self.graph.value(self.uri, L9['pointsFile'])
    self.curve = Curve(self.uri, pointsStorage=('file' if pointsFile else 'graph'))
    if hasattr(self.graph, 'addHandler'):
        self.graph.addHandler(self.pointsFromGraph)
    else:
        self.pointsFromGraph()