[req] drop pre-3.7 api on request
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 27 Mar 2013 15:03:14 +0100
changeset 8791 892fc9e0c8df
parent 8790 c3fc17d79e85
child 8792 4b6d3d0a853e
[req] drop pre-3.7 api on request Dropping of API deprecated since 3.7 decided in #2772958
entity.py
req.py
--- a/entity.py	Wed Mar 27 14:46:55 2013 +0100
+++ b/entity.py	Wed Mar 27 15:03:14 2013 +0100
@@ -37,7 +37,6 @@
 from cubicweb.utils import support_args
 from cubicweb.rset import ResultSet
 from cubicweb.appobject import AppObject
-from cubicweb.req import _check_cw_unsafe
 from cubicweb.schema import (RQLVocabularyConstraint, RQLConstraint,
                              GeneratedConstraint)
 from cubicweb.rqlrewrite import RQLRewriter
@@ -1287,7 +1286,6 @@
         an entity or eid, a list of entities or eids, or None (meaning that all
         relations of the given type from or to this object should be deleted).
         """
-        _check_cw_unsafe(kwargs)
         assert kwargs
         assert self.cw_is_saved(), "should not call set_attributes while entity "\
                "hasn't been saved yet"
--- a/req.py	Wed Mar 27 14:46:55 2013 +0100
+++ b/req.py	Wed Mar 27 15:03:14 2013 +0100
@@ -38,12 +38,6 @@
 class FindEntityError(Exception):
     """raised when find_one_entity() can not return one and only one entity"""
 
-def _check_cw_unsafe(kwargs):
-    if kwargs.pop('_cw_unsafe', False):
-        warn('[3.7] _cw_unsafe argument is deprecated, now unsafe by '
-             'default, control it using cw_[read|write]_security.',
-             DeprecationWarning, stacklevel=3)
-
 class Cache(dict):
     def __init__(self):
         super(Cache, self).__init__()
@@ -154,7 +148,6 @@
         ...               works_for=c)
 
         """
-        _check_cw_unsafe(kwargs)
         cls = self.vreg['etypes'].etype_class(etype)
         return cls.cw_instantiate(self.execute, **kwargs)