server/sources/__init__.py
changeset 7040 9b1f9bc74f5d
parent 6957 ffda12be2e9f
parent 7037 6a8235456fe1
child 7118 e094b3d4eb95
equal deleted inserted replaced
7025:fee3a1f28ed7 7040:9b1f9bc74f5d
   570         pass
   570         pass
   571     def rollback(self):
   571     def rollback(self):
   572         pass
   572         pass
   573     def cursor(self):
   573     def cursor(self):
   574         return None # no actual cursor support
   574         return None # no actual cursor support
   575 
   575     def close(self):
       
   576         if hasattr(self.cnx, 'close'):
       
   577             self.cnx.close()
   576 
   578 
   577 from cubicweb.server import SOURCE_TYPES
   579 from cubicweb.server import SOURCE_TYPES
   578 
   580 
   579 def source_adapter(source_type):
   581 def source_adapter(source_type):
   580     try:
   582     try: