1. 26 Sep, 2001 12 commits
    • Fred Drake's avatar
      Start making some markup adjustments; Barry has indicated he will work on · d949c8ac
      Fred Drake authored
      this before we finish the integration, along with some restructuring.
      d949c8ac
    • Thomas Wouters's avatar
      Test case for SF bugs #463359 and #462937, added to test_grammar for lack of · 81121459
      Thomas Wouters authored
      a better place. Excessively fragile code, but at least it breaks when
      something in this area changes!
      81121459
    • Barry Warsaw's avatar
      Update the tests for the current incarnation of the email package, and · d6f939a4
      Barry Warsaw authored
      added some new tests of message/delivery-status content type messages.
      d6f939a4
    • Barry Warsaw's avatar
      More test messages for test_email.py · 0c8e884b
      Barry Warsaw authored
      0c8e884b
    • Barry Warsaw's avatar
      _parsebody(): Use get_boundary() and get_type(). · 2850f71c
      Barry Warsaw authored
          Also, add a clause to the big-if to handle message/delivery-status
          content types.  These create a message with subparts that are
          Message instances, which best represent the header blocks of this
          content type.
      2850f71c
    • Barry Warsaw's avatar
      has_key(): Implement in terms of get(). · 6644442d
      Barry Warsaw authored
      get_type(): Use a compiled regular expression, which can be shared.
      
      _get_params_preserve(): A helper method which extracts the header's
          parameter list preserving value quoting.  I'm not sure that this
          needs to be a public method.  It's necessary because we want
          get_param() and friends to return the unquoted parameter value,
          however we want the quote-preserved form for set_boundary().
      
      get_params(), get_param(), set_boundary(): Implement in terms of
          _get_params_preserve().
      
      walk(): Yield ourself first, then recurse over our subparts (if any).
      6644442d
    • Barry Warsaw's avatar
      __init__(): Arguments major renamed to maintype and minor renamed to · 4aa12866
      Barry Warsaw authored
          subtype for consistency with the rest of the package.
      4aa12866
    • Barry Warsaw's avatar
      Updated docstrings. Also, · a1ca3869
      Barry Warsaw authored
      typed_subpart_iterator(): Arguments major renamed to maintype and
          minor renamed to subtype for consistency with the rest of the
          package.
      a1ca3869
    • Barry Warsaw's avatar
      Image.py and class Image => MIMEImage.py and MIMEImage · ec7911d1
      Barry Warsaw authored
      Text.py and class Text => MIMEText.py and MIMEText
      
      MessageRFC822.py and class MessageRFC822 => MIMEMessage.py and MIMEMessage
      
      These are renamed so as to be more consistent; these are MIME specific
      derived classes for when creating the object model out of whole cloth.
      ec7911d1
    • Barry Warsaw's avatar
      In class Generator: · bb73b390
      Barry Warsaw authored
          _handle_text(): If the payload is None, then just return (i.e. don't
      	write anything).  Subparts of message/delivery-status types
      	will have this property since they are just blocks of headers.
      
      	Also, when raising the TypeError, include the type of the
      	payload in the error message.
      
          _handle_multipart(), _handle_message(): When creating a clone of self,
      	pass in our _mangle_from_ and maxheaderlen flags so the clone
      	has the same behavior.
      
          _handle_message_delivery_status(): New method to do the proper
      	printing of message/delivery-status type messages.  These have
      	to be handled differently than other message/* types because
      	their payloads are subparts containing just blocks of headers.
      
      In class DecodedGenerator:
      
          _dispatch(): Skip over multipart/* messages since we don't care
              about them, and don't want the non-text format to appear in
              the printed results.
      bb73b390
    • Barry Warsaw's avatar
      cosmetic · 04125d06
      Barry Warsaw authored
      04125d06
    • Barry Warsaw's avatar
      The email package documentation, currently organized the way I think · 9ab689d3
      Barry Warsaw authored
      Fred prefers.  I'm not sure I like this organization, so it may change.
      9ab689d3
  2. 25 Sep, 2001 25 commits
  3. 24 Sep, 2001 3 commits
    • Tim Peters's avatar
      + Text-mode (but not yet GUI mode) pydoc now produces useful stuff for · 088a60ba
      Tim Peters authored
        properties:  the docstring (if any) is displayed, and the getter, setter
        and deleter (if any) functions are named.  All that is shown indented
        after the property name.
      
      + Text-mode pydoc class display now draws a horizontal line between
        class attribute groups (similar to GUI mode -- while visually more
        intrusive in text mode, it's still an improvement).
      088a60ba
    • Tim Peters's avatar
      Make properties discoverable from Python: · 1a91640d
      Tim Peters authored
      - property() now takes 4 keyword arguments:  fget, fset, fdel, doc.
        Note that the real purpose of the 'f' prefix is to make fdel fit in
        ('del' is a keyword, so can't used as a keyword argument name).
      
      - These map to visible readonly attributes 'fget', 'fset', 'fdel',
        and '__doc__' in the property object.
      
      - fget/fset/fdel weren't discoverable from Python before.
      
      - __doc__ is new, and allows to associate a docstring with a property.
      1a91640d
    • Fred Drake's avatar
      Added several new tests to check the behavior with respect to doctype · 52b07a2c
      Fred Drake authored
      declarations and weird markup that we used to accept & ignore that recent
      versions raised an exception for; the original behavior has been restored
      and augmented (the user can decide what to do if they care; the default is
      to ignore it as done in early versions).
      52b07a2c