# HG changeset patch # User Denis Laxalde <denis.laxalde@logilab.fr> # Date 1436450805 -7200 # Thu Jul 09 16:06:45 2015 +0200 # Node ID ad28c783ec1646990cac9bc64032335c5eecb5d9 # Parent b46c3f860ccb67718e867908ca273255d4018b3f Rename IClonable into IClonableAdapter diff --git a/entities.py b/entities.py --- 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 --- a/test/data/entities.py +++ b/test/data/entities.py @@ -1,11 +1,12 @@ -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() -class AgentIClonable(IClonable): +class AgentIClonableAdapter(IClonableAdapter): rtype = 'clone_of'