server/sources/__init__.py
branchstable
changeset 7037 6a8235456fe1
parent 6889 37668bf302f5
child 7040 9b1f9bc74f5d
equal deleted inserted replaced
7036:63386b35ec69 7037:6a8235456fe1
   522         pass
   522         pass
   523     def rollback(self):
   523     def rollback(self):
   524         pass
   524         pass
   525     def cursor(self):
   525     def cursor(self):
   526         return None # no actual cursor support
   526         return None # no actual cursor support
   527 
   527     def close(self):
       
   528         if hasattr(self.cnx, 'close'):
       
   529             self.cnx.close()
   528 
   530 
   529 from cubicweb.server import SOURCE_TYPES
   531 from cubicweb.server import SOURCE_TYPES
   530 
   532 
   531 def source_adapter(source_type):
   533 def source_adapter(source_type):
   532     try:
   534     try: