entities/adapters.py
changeset 8190 2a3c1b787688
parent 8037 a36bd56f33bb
child 8518 153a7c9cdca9
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     1 # copyright 2010-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2010-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    27 from logilab.mtconverter import TransformError
    27 from logilab.mtconverter import TransformError
    28 from logilab.common.decorators import cached
    28 from logilab.common.decorators import cached
    29 from logilab.common.deprecation import class_deprecated
    29 from logilab.common.deprecation import class_deprecated
    30 
    30 
    31 from cubicweb import ValidationError, view
    31 from cubicweb import ValidationError, view
    32 from cubicweb.selectors import (implements, is_instance, relation_possible,
    32 from cubicweb.predicates import (implements, is_instance, relation_possible,
    33                                 match_exception)
    33                                 match_exception)
    34 from cubicweb.interfaces import IDownloadable, ITree, IProgress, IMileStone
    34 from cubicweb.interfaces import IDownloadable, ITree, IProgress, IMileStone
    35 
    35 
    36 
    36 
    37 class IEmailableAdapter(view.EntityAdapter):
    37 class IEmailableAdapter(view.EntityAdapter):