server/session.py
changeset 9458 e2dfdd313dfe
parent 9404 3e3e9b37e177
child 9463 d62e13eba033
--- a/server/session.py	Fri Jun 21 16:17:17 2013 +0200
+++ b/server/session.py	Fri Jun 21 17:53:44 2013 +0200
@@ -1438,7 +1438,10 @@
 
     @deprecated('[3.19] use a Connection object instead')
     def get_option_value(self, option, foreid=None):
-        return self.repo.get_option_value(option, foreid)
+        if foreid is not None:
+            warn('[3.19] foreid argument is deprecated', DeprecationWarning,
+                 stacklevel=2)
+        return self.repo.get_option_value(option)
 
     @deprecated('[3.19] use a Connection object instead')
     def transaction(self, free_cnxset=True):