Browse files

add hard constraint for resource: its Origin has to be processed befo…

…rehands
  • Loading branch information...
1 parent 4f86862 commit 8f94990e7d30eec31a67888cfbc84f31ef18cf11 @dmr committed Sep 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 ldtools/__init__.py
View
4 ldtools/__init__.py
@@ -164,8 +164,8 @@ def get_pk(self, origin_uri, uri):
def create(self, uri, origin, **kwargs):
assert isinstance(origin, Origin), "Origin instance required"
- #assert origin.processed, ("Origin has to be processed before creating "
- # "more Resource objects: origin.GET()")
+ assert origin.processed, ("Origin has to be processed "
+ "before creating more Resource objects: origin.GET()")
# Absolutize relative URIs
if uri.startswith("#"):

0 comments on commit 8f94990

Please sign in to comment.