1. 11 Apr, 2001 12 commits
  2. 10 Apr, 2001 20 commits
  3. 09 Apr, 2001 8 commits
    • Amos Latteier's avatar
      Document DTML security functions. · 2606c799
      Amos Latteier authored
      2606c799
    • Guido van Rossum's avatar
      ec4ff4e2
    • Guido van Rossum's avatar
      When optimizing startEndTag, use " />" as the end separator when · 2b577d20
      Guido van Rossum authored
      generating HTML, and "/>" for XML, instead of always using "/>".
      
      This is necessary for proper XHTML generation.
      2b577d20
    • Guido van Rossum's avatar
      Now that self.html is set and cleared by do_mode(), also set · 116aebd2
      Guido van Rossum authored
      self.endsep to the proper value there.
      116aebd2
    • Barry Warsaw's avatar
      _close(): Abort whatever transaction might still be active. Maybe · adc93fda
      Barry Warsaw authored
      this fixes the Windows crashes?
      
      checkSimpleTransactionalUndo(): Modify tests to check zombification
      and subsequent re-birth of objects via transactionalUndo().
      adc93fda
    • Barry Warsaw's avatar
      "Experimental" support for undoing past an object's creation. This · c9fab9ff
      Barry Warsaw authored
      works by writing a metadata record which contains a special lrevid
      (pickle pointer).  Upon loading a zombified object, naive applications
      will get a KeyError as would be expected for loading a non-existant
      object.
      
      The actual exception though is ObjectDoesNotExist -- derived from
      KeyError -- which contains a `revid' attribute pointing to the
      revision of the object which zombified it.  Thus, by undoing this
      revid, the object can be reborn to its initial state.
      
      Specifically,
      
      ObjectDoesNotExist: New exception, derived from KeyError.
      
      load(): If an object's metadata has an lrevid with the special `dne'
      value (64-bits full of 1's), the object is a zombie and
      ObjectDoesNotExist is raised.
      
      transactionalUndo(): If prevrevid for the revision we're undoing is
      zero, it means that we're undoing the object's creation.  Instead of
      raising an UndoError, write a new metadata record containing the
      original record, but with lrevid == dne, and prevrevid == tid.
      
      This change also contains initial (untested) support for pack(),
      specifically,
      
      _zaprevision(): pack doesn't happen in a transaction, so remove the
      txn argument.  Add the referencesf argument, passed from the pack()
      call.
      
      pack(): Initial implementation.  Seems fairly simple really (too
      simple? ;)
      c9fab9ff
    • Fred Drake's avatar
      · 629c7393
      Fred Drake authored
      XMLParserTestCase.check_bad_nesting():
          Use self.fail() instead of naming AssertionError directly; how PyUnit
          deals with the error is it's problem, not ours.  ;-)
      629c7393
    • Andreas Jung's avatar
      merged check for broken objects · e70583b7
      Andreas Jung authored
      e70583b7