equal
deleted
inserted
replaced
15 to entity types. They are introduced in version `3.9`. Before that one |
15 to entity types. They are introduced in version `3.9`. Before that one |
16 had to implements Interfaces in entity classes to achieve a similar goal. However, |
16 had to implements Interfaces in entity classes to achieve a similar goal. However, |
17 hte problem with this approch is that is clutters the entity class's namespace, exposing |
17 hte problem with this approch is that is clutters the entity class's namespace, exposing |
18 name collision risks with schema attributes/relations or even methods names |
18 name collision risks with schema attributes/relations or even methods names |
19 (different interfaces may define the same method with not necessarily the same |
19 (different interfaces may define the same method with not necessarily the same |
20 behviour expected). |
20 behaviour expected). |
21 |
21 |
22 Definition of an adapter is quite trivial. An excerpt from cubicweb |
22 Definition of an adapter is quite trivial. An excerpt from cubicweb |
23 itself (found in :mod:`cubicweb.entities.adapters`): |
23 itself (found in :mod:`cubicweb.entities.adapters`): |
24 |
24 |
25 .. sourcecode:: python |
25 .. sourcecode:: python |