Skip to content
Snippets Groups Projects
Commit ad28c783ec16 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Rename IClonable into IClonableAdapter

parent b46c3f860ccb
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
return None return None
class IClonable(EntityAdapter): class IClonableAdapter(EntityAdapter):
"""Adapter for entity cloning. """Adapter for entity cloning.
Concrete classes should specify `rtype` (and possible `role`) class Concrete classes should specify `rtype` (and possible `role`) class
......
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): def agent_structure_def(schema):
return structure_def(schema, 'Agent').items() return structure_def(schema, 'Agent').items()
...@@ -2,10 +3,10 @@ ...@@ -2,10 +3,10 @@
def agent_structure_def(schema): def agent_structure_def(schema):
return structure_def(schema, 'Agent').items() return structure_def(schema, 'Agent').items()
class AgentIClonable(IClonable): class AgentIClonableAdapter(IClonableAdapter):
rtype = 'clone_of' rtype = 'clone_of'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment