repoapi.py
changeset 9458 e2dfdd313dfe
parent 9404 3e3e9b37e177
child 9459 d3016c08b4ae
--- a/repoapi.py	Fri Jun 21 16:17:17 2013 +0200
+++ b/repoapi.py	Fri Jun 21 17:53:44 2013 +0200
@@ -17,6 +17,7 @@
 # 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
 
@@ -243,6 +244,9 @@
         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)
 
     describe = _srv_cnx_func('describe')