remove 3.11 bw compat
Closes #3799117.
--- a/dataimport.py Fri May 02 17:57:37 2014 +0200
+++ b/dataimport.py Fri May 02 17:58:57 2014 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -557,13 +557,6 @@
self.types.setdefault(etype, []).append(eid)
return data
- @deprecated("[3.11] add is deprecated, use create_entity instead")
- def add(self, etype, item):
- assert isinstance(item, dict), 'item is not a dict but a %s' % type(item)
- data = self.create_entity(etype, **item)
- item['eid'] = data['eid']
- return item
-
def relate(self, eid_from, rtype, eid_to, **kwargs):
"""Add new relation"""
relation = eid_from, rtype, eid_to
--- a/doc/3.20.rst Fri May 02 17:57:37 2014 +0200
+++ b/doc/3.20.rst Fri May 02 17:58:57 2014 +0200
@@ -6,3 +6,5 @@
* most 3.10 backward compat is gone (box related objects are still
there, but you are encouraged to not depend on them)
+
+* 3.11 backward compat is gone
--- a/web/views/startup.py Fri May 02 17:57:37 2014 +0200
+++ b/web/views/startup.py Fri May 02 17:58:57 2014 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -156,14 +156,6 @@
return u'[<a href="%s" title="%s">+</a>]' % (
xml_escape(url), self._cw.__('New %s' % etype))
- @deprecated('[3.11] display_folders method is deprecated, backport it if needed')
- def display_folders(self):
- return False
-
- @deprecated('[3.11] folders method is deprecated, backport it if needed')
- def folders(self):
- self.w(u'<h2>%s</h2>\n' % self._cw._('Browse by category'))
- self._cw.vreg['views'].select('tree', self._cw).render(w=self.w, maxlevel=1)
class IndexView(ManageView):