diff --git a/entities.py b/entities.py index b46c3f860ccb67718e867908ca273255d4018b3f_ZW50aXRpZXMucHk=..ad28c783ec1646990cac9bc64032335c5eecb5d9_ZW50aXRpZXMucHk= 100644 --- a/entities.py +++ b/entities.py @@ -146,7 +146,7 @@ return None -class IClonable(EntityAdapter): +class IClonableAdapter(EntityAdapter): """Adapter for entity cloning. Concrete classes should specify `rtype` (and possible `role`) class diff --git a/test/data/entities.py b/test/data/entities.py index b46c3f860ccb67718e867908ca273255d4018b3f_dGVzdC9kYXRhL2VudGl0aWVzLnB5..ad28c783ec1646990cac9bc64032335c5eecb5d9_dGVzdC9kYXRhL2VudGl0aWVzLnB5 100644 --- a/test/data/entities.py +++ b/test/data/entities.py @@ -1,7 +1,8 @@ -from cubes.compound.entities import IClonable, IContained, IContainer, structure_def +from cubes.compound.entities import (IClonableAdapter, IContained, IContainer, + structure_def) def agent_structure_def(schema): return structure_def(schema, 'Agent').items() @@ -2,10 +3,10 @@ def agent_structure_def(schema): return structure_def(schema, 'Agent').items() -class AgentIClonable(IClonable): +class AgentIClonableAdapter(IClonableAdapter): rtype = 'clone_of'