# HG changeset patch # User Julien Cristau # Date 1390389296 -3600 # Node ID d3016c08b4aebe04b70a9f268a5dd6ec1d453520 # Parent e2dfdd313dfe04f2bac8022afd4e759f258ea024 [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. diff -r e2dfdd313dfe -r d3016c08b4ae repoapi.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 . """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') diff -r e2dfdd313dfe -r d3016c08b4ae req.py --- 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):