dbapi.py
changeset 9040 3c85e734ce00
parent 9038 1b972d81eda4
child 9042 6cc13a0a9145
equal deleted inserted replaced
9039:488255d1cf3b 9040:3c85e734ce00
   325         if session is not None:
   325         if session is not None:
   326             self.set_session(session)
   326             self.set_session(session)
   327         else:
   327         else:
   328             # these args are initialized after a connection is
   328             # these args are initialized after a connection is
   329             # established
   329             # established
   330             self.session = None
   330             self.session = DBAPISession(None)
   331             self.cnx = self.user = _NeedAuthAccessMock()
   331             self.cnx = self.user = _NeedAuthAccessMock()
   332         self.set_default_language(vreg)
   332         self.set_default_language(vreg)
   333 
   333 
   334     def get_option_value(self, option, foreid=None):
   334     def get_option_value(self, option, foreid=None):
   335         return self.cnx.get_option_value(option, foreid)
   335         return self.cnx.get_option_value(option, foreid)