please review "[adapters] move class EntityAdapter from cubicweb.view to cubicweb.entity"

Nicolas Chauvat nicolas.chauvat at logilab.fr
Mon Feb 10 09:51:23 CET 2020


Hi List,

Reading the source code of CubicWeb (again) it seemed to me that the
class EntityAdapter would be better located in cubicweb.entity than in
cubicweb.view because you may want to use entity adapters without the
views. Having EntityAdapter in cubicweb.view makes you think adapters
are specific to the view mechanism, but they are not.

The following changeset moves the class and sets a deprecation warning
accordingly:

  https://hg.logilab.org/review/cubicweb/rev/58fa4925108f

What do you think ?

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the cubicweb-devel mailing list