server/sources/__init__.py
changeset 9512 88dc96fc9fc1
parent 9469 032825bbacab
child 9543 39f981482e34
--- a/server/sources/__init__.py	Tue Feb 11 17:29:58 2014 +0100
+++ b/server/sources/__init__.py	Wed Jan 29 13:43:42 2014 +0100
@@ -346,7 +346,7 @@
 
     # user authentication api ##################################################
 
-    def authenticate(self, session, login, **kwargs):
+    def authenticate(self, cnx, login, **kwargs):
         """if the source support CWUser entity type, it should implement
         this method which should return CWUser eid for the given login/password
         if this account is defined in this source and valid login / password is
@@ -356,7 +356,7 @@
 
     # RQL query api ############################################################
 
-    def syntax_tree_search(self, session, union,
+    def syntax_tree_search(self, cnx, union,
                            args=None, cachekey=None, varmap=None, debug=0):
         """return result from this source for a rql query (actually from a rql
         syntax tree and a solution dictionary mapping each used variable to a