[repoapi] drop get_option_value's foreid argument
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 22 Jan 2014 12:14:56 +0100
changeset 9459 d3016c08b4ae
parent 9458 e2dfdd313dfe
child 9460 a2a0bc984863
[repoapi] drop get_option_value's foreid argument repoapi was introduced in 3.19, so no need to introduce legacy deprecated stuff at the same time.
repoapi.py
req.py
--- a/repoapi.py	Fri Jun 21 17:53:44 2013 +0200
+++ b/repoapi.py	Wed Jan 22 12:14:56 2014 +0100
@@ -17,8 +17,6 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """Official API to access the content of a repository
 """
-from warnings import warn
-
 from logilab.common.deprecation import deprecated
 
 from cubicweb.utils import parse_repo_uri
@@ -239,15 +237,9 @@
         return self._session.repo.source_defs()
 
     @_open_only
-    def get_option_value(self, option, foreid=None):
-        """Return the value for `option` in the configuration. If `foreid` is
-        specified, the actual repository to which this entity belongs is
-        dereferenced and the option value retrieved from it.
-        """
-        if foreid is not None:
-            warn('[3.19] foreid argument is deprecated', DeprecationWarning,
-                 stacklevel=2)
-        return self._session.repo.get_option_value(option, foreid)
+    def get_option_value(self, option):
+        """Return the value for `option` in the configuration."""
+        return self._session.repo.get_option_value(option)
 
     describe = _srv_cnx_func('describe')
 
--- a/req.py	Fri Jun 21 17:53:44 2013 +0200
+++ b/req.py	Wed Jan 22 12:14:56 2014 +0100
@@ -103,7 +103,7 @@
         self._ = self.__ = gettext
         self.pgettext = pgettext
 
-    def get_option_value(self, option, foreid=None):
+    def get_option_value(self, option):
         raise NotImplementedError
 
     def property_value(self, key):