[idownloadable] restore backward compat stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 12 Jan 2011 15:19:29 +0100
branchstable
changeset 6813 5ad3e070b1a6
parent 6812 a637f961665d
child 6814 48402faff043
[idownloadable] restore backward compat
web/views/idownloadable.py
--- a/web/views/idownloadable.py	Wed Jan 12 15:19:10 2011 +0100
+++ b/web/views/idownloadable.py	Wed Jan 12 15:19:29 2011 +0100
@@ -21,6 +21,7 @@
 _ = unicode
 
 from logilab.mtconverter import BINARY_ENCODINGS, TransformError, xml_escape
+from logilab.common.deprecation import class_renamed
 
 from cubicweb import tags
 from cubicweb.view import EntityView
@@ -169,6 +170,10 @@
         self.w(u'<a href="%s">%s</a> [<a href="%s">%s</a>]' %
                (url, name, durl, self._cw._('download')))
 
+IDownloadableLineView = class_renamed(
+    'IDownloadableLineView', IDownloadableOneLineView,
+    '[3.10] IDownloadableLineView is deprecated, use %IDownloadableOneLineView')
+
 
 class AbstractEmbeddedView(EntityView):
     __abstract__ = True