1. 07 Apr, 2001 12 commits
  2. 06 Apr, 2001 18 commits
  3. 05 Apr, 2001 10 commits
    • Jim Fulton's avatar
      Moved Python 1.x compatable asyncx to their own package that takes · baa68c50
      Jim Fulton authored
      care of installing them when necessary (not for Python 2.0)
      
      Now import asyncore and asynchat as top-level modules, rather than
      from the medusa package. This makes it easier to use our custum
      version for Python 1.5 and to use the standard versions for Python
      2.x.
      
      Note that the Python 2.1b1 and 2.1b2 releases had a broken asynchat
      that causes these changes to break Zope. The Python cvs and earler and
      later versions are OK.
      baa68c50
    • Jim Fulton's avatar
      Moved Python 1.x compatable asyncx to their own package that takes · 2e1a795d
      Jim Fulton authored
      care of installing them when necessary (not for Python 2.0)
      2e1a795d
    • Barry Warsaw's avatar
      Changes to make the tests more robust under Windows. · 48083622
      Barry Warsaw authored
      checkCreateNoFile(), checkCreateWithFilename(),
      checkCreateWithFileobj(): Make sure these tests close the file object
      before they attempt to unlink the underlying file.y
      
      checkCloseNoUnlink(), checkDel(): New tests in the CreateCommitLogTest
      class.
      
      CloseCommitLogTest: removed this class; its tests are folded into
      CreateCommitLogTest.
      48083622
    • Barry Warsaw's avatar
      _close(): Override from base class so that the storage alone is closed · 2dc88797
      Barry Warsaw authored
      (there's no DB object since we're poking at things at a lower level).
      2dc88797
    • Barry Warsaw's avatar
      Changes to make the tests more robust under Windows. · db6d6783
      Barry Warsaw authored
      tearDown(): Make sure any outstanding transactions are aborted so as
      not to retain modified objects connected to closed databases.  Second,
      call self._close() to free any resources.
      
      _close(): Close the DB object, which in turn closes the underlying
      storage.
      db6d6783
    • Chris McDonough's avatar
      aaeb1489
    • Chris McDonough's avatar
      2ee28e32
    • Chris McDonough's avatar
      Merge for collector 2137 (typo) · 1eeccb32
      Chris McDonough authored
      1eeccb32
    • Barry Warsaw's avatar
      InternalInconsistencyError => POSException.StorageSystemError · bc1f63a1
      Barry Warsaw authored
      _finish(): In delete-a-version clause, use next_dup() instead of
      next() to iterate over the currentVersions table with cursor set to
      the vid of the version we're deleting.
      
      abortVersion(): When cruising over the currentVersions table (and the
      key set to vid of the version we're aborting), use next_dup() instead
      of next().  Also, when curvid <> vid, raise StorageSystemError instead
      of VersionError.  Same later on when we check curvid <> zero.
      
      commitVersion(): Add sanity checking based on model documentation: if
      the source version is the empty string, or src == dest, raise a
      VersionCommitError.  Make the same changes we made previously to
      abortVersion() to keep track of the oids in a set/dictionary instead
      of a list to avoid duplicates.  Other fixes include, writing revid
      instead of tid==self._serial to write_moved_object() and adding a
      write_discard_version(svid) once the source version's been committed.
      
      commitVersion() now works!
      
      load(): Add another check to avoid finding an object revision in a
      committed or aborted version if we can guess that version name.  It
      now raises a VersionError if vid==zero and version is true.
      
      Also, although we still raise VersionError later on, elaborate the
      actual exception better in the error message.
      bc1f63a1
    • Barry Warsaw's avatar
      More new tests: · 5abae7de
      Barry Warsaw authored
          checkAbortVersionErrors
          checkModifyAfterAbortVersion
          checkCommitToNonVersion
          checkCommitToOtherVersion
          checkAbortOneVersionCommitTheOther
      
      All are inhibited for Minimal storage.
      5abae7de