1. 27 Aug, 2002 5 commits
    • Barry Warsaw's avatar
      Typo. · 9bb081e8
      Barry Warsaw authored
      9bb081e8
    • Guido van Rossum's avatar
      Test methods should not have docstrings. (This makes the · baa7aa27
      Guido van Rossum authored
      identification harder, especially when generic test classes are
      inherited by multiple specific test classes.)
      baa7aa27
    • Guido van Rossum's avatar
      Fix the most egregious bugs: · f16a77a9
      Guido van Rossum authored
      - Document the correct persistent filenames and the presence of a
        magic number at the start of the file.  (Also document the
        conditions under which the cache is persistent.)
      
      - In __init__(), seek to the correct position to read the first
        record's serialno.  It was reading the last byte of dlen plus the
        first 7 bytes of the serialno.
      
      - In invalidate(), fix the seek call after the read(8) to actually
        seek to the status byte.  It was seeking 8 bytes too far, causing it
        to overwrite the 2nd byte of dlen instead of the status byte.
      f16a77a9
    • Guido van Rossum's avatar
      The beginnings of a test suite for ClientCache.py. · 110eea34
      Guido van Rossum authored
      This will cause three failures with the current version of
      ClientCache.py, because some of the tests were specifically written to
      verify certain bugs.  I will check in fixes for thse bugs shortly.
      110eea34
    • Barry Warsaw's avatar
      Add some rules to make the pdf · 4b6e9b69
      Barry Warsaw authored
      4b6e9b69
  2. 26 Aug, 2002 2 commits
  3. 23 Aug, 2002 4 commits
  4. 22 Aug, 2002 4 commits
    • Jeremy Hylton's avatar
      Remove unused imports. · 062a08a6
      Jeremy Hylton authored
      062a08a6
    • Jeremy Hylton's avatar
      There were two copies trigger! · 714c13db
      Jeremy Hylton authored
      The one in ZEO/trigger.py was the good code, but we want it to live in
      ZEO/zrpc/trigger.py.  This checkin makes that change.
      
      The key checkin of ZEO/trigger.py had this checkin comment:
      Fix trigger close/__del__.
      
      The close() mechanism for an asyncore file_dispatcher is not safe to
      call multiple times.  It's calling os.close() on a file descriptor
      (int).  Guido observed that if you call close() twice, you could be in
      trouble:  1) First close() call closes FD 6.  2) Another bit of code
      opens a new file, getting FD 6.  3) Second close() call closes FD 6.
      Waah!  FD 6 is some other file.
      
      The workaround attempt here is to define a close() method on a trigger
      that only closes the file descriptors the first time.
      
      Also, make sure that both file descriptors are closed.  The previous
      version only closed the read-end of the pipe.
      714c13db
    • Jeremy Hylton's avatar
      Cleanup implementation of string accumulation in handle_write(). · 68ccf0c8
      Jeremy Hylton authored
      Boost the accumulator limit to 60000.
      Use "".join() to accumulate multiple strings, since it is not unusual
      to have more than 2 strings to join together.
      
      Add comment explaining why we do this stuff.
      68ccf0c8
    • Barry Warsaw's avatar
      Added TransactionTooLargeError which is subclassed from · 402eef70
      Barry Warsaw authored
      StorageTransactionError.  This exception is raised when a transaction
      exhausts some finite storage resource.  E.g. a transaction changing a
      huge number of objects could fill a Berkeley lock table.
      
      Also, removed some unnecessary `pass' statements, and improved
      consistency in class docstrings (first line is a complete sentence).
      402eef70
  5. 16 Aug, 2002 10 commits
  6. 15 Aug, 2002 2 commits
    • Jeremy Hylton's avatar
      Another attempt to make testHoserStoppage work consistently. · 3b02901e
      Jeremy Hylton authored
      The order in which the tpc_finish() method of the jars is called is
      dependent on the order in which objects are returned from
      dict.values().  There is no way to write a test that works on all
      platforms that produces a consistent result in dict.values(), so stop
      trying.
      
      Instead, have the jars explicitly coordinate their tpc_finish()
      methods so that the first call always succeeds and the second call
      always fails.
      3b02901e
    • Jeremy Hylton's avatar
      Frontport bug fixes in ConflictResolution to the trunk. · 7ebc446d
      Jeremy Hylton authored
      The main idea in the bug fix is to recover more gracefully when
      something goes wrong trying to load classes for conflict resolution.
      
      XXX This accidentally got checked in on the Zope 2.5 branch first.
      7ebc446d
  7. 14 Aug, 2002 13 commits