[ZODB-Dev] Closing ZODB connection

Antonio Beamud Montero antonio.beamud at linkend.com
Wed Oct 29 10:53:21 EST 2003


Is correct to close the connection this way?
   ....
   def get_reg_list(self):
       con = self.db.open()
       root = con.root()
       con.close()
       return root['status'].get_register_list()
It works but can be dangerous?

A lot of thanks 
-- 
Antonio Beamud Montero <antonio.beamud at linkend.com>




More information about the ZODB-Dev mailing list