Преглед на файлове

Fix import error in resource API.

Stefano Cossu преди 7 години
родител
ревизия
2e4a3bd743
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      lakesuperior/api/resource.py

+ 3 - 2
lakesuperior/api/resource.py

@@ -11,7 +11,8 @@ from rdflib import Literal
 from rdflib.namespace import XSD
 
 from lakesuperior.config_parser import config
-from lakesuperior.exceptions import InvalidResourceError
+from lakesuperior.exceptions import (
+        InvalidResourceError, ResourceNotExistsError, TombstoneError)
 from lakesuperior.env import env
 from lakesuperior.globals import RES_DELETED
 from lakesuperior.model.ldp_factory import LDP_NR_TYPE, LdpFactory
@@ -32,7 +33,7 @@ Quickstart:
 >>> # Get root resource.
 >>> rsrc = resource.get('/')
 >>> # Dump graph.
->>> set(rsrc.imr())
+>>> set(rsrc.imr)
 {(rdflib.term.URIRef('info:fcres/'),
   rdflib.term.URIRef('http://purl.org/dc/terms/title'),
   rdflib.term.Literal('Repository Root')),