(self)
Return a cursor from the pool

      :rtype: the cursor
Return a cursor from the pool
Return a cursor from the pool
def getCursor(self):
      """ Return a cursor from the pool

      :rtype: the cursor

      """
      if not self.cursorPool:
         logging.debug("Creating new cursor for database...")
         self.cursorPool = self.connection.cursor()
         return self.cursorPool
      else:
         return self.cursorPool
def getCursor ( self ) : if not self . cursorPool : logging . debug ( "Creating new cursor for database..." ) self . cursorPool = self . connection . cursor ( ) return self . cursorPool else : return self . cursorPool