[idownloadable] deprecate download_box function stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 13 Jan 2011 12:34:17 +0100
branchstable
changeset 6814 48402faff043
parent 6813 5ad3e070b1a6
child 6815 a84190d4e78c
[idownloadable] deprecate download_box function
web/views/idownloadable.py
--- a/web/views/idownloadable.py	Wed Jan 12 15:19:29 2011 +0100
+++ b/web/views/idownloadable.py	Thu Jan 13 12:34:17 2011 +0100
@@ -21,7 +21,7 @@
 _ = unicode
 
 from logilab.mtconverter import BINARY_ENCODINGS, TransformError, xml_escape
-from logilab.common.deprecation import class_renamed
+from logilab.common.deprecation import class_renamed, deprecated
 
 from cubicweb import tags
 from cubicweb.view import EntityView
@@ -32,7 +32,7 @@
 from cubicweb.web.views import primary, baseviews
 
 
-# XXX deprecated
+@deprecated('[3.10] use a custom IDownloadable adapter instead')
 def download_box(w, entity, title=None, label=None, footer=u''):
     req = entity._cw
     w(u'<div class="sideBox">')