# HG changeset patch # User Aurelien Campeas # Date 1399046337 -7200 # Node ID 727bbb361ed13e85b06be4a44b1e20db946f90c8 # Parent 8391bf718485e85bd4d69f10257c50642dcb2145 remove 3.11 bw compat Closes #3799117. diff -r 8391bf718485 -r 727bbb361ed1 dataimport.py --- 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 diff -r 8391bf718485 -r 727bbb361ed1 doc/3.20.rst --- 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 diff -r 8391bf718485 -r 727bbb361ed1 web/views/startup.py --- 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'[+]' % ( 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'

%s

\n' % self._cw._('Browse by category')) - self._cw.vreg['views'].select('tree', self._cw).render(w=self.w, maxlevel=1) class IndexView(ManageView):