Ignore:
Timestamp:
Jul 10, 2013, 11:55:33 PM (7 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Do proper fallback for Request.stanzaType.

If stanzaType is not passed to the constructor of
wokkel.generic.Request, it should default to the value in the class
variable, not get.

Author: ralphm
Fixes: #80

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/generic.py

    r184 r185  
    275275    childParsers = {None: 'parseRequest'}
    276276
    277     def __init__(self, recipient=None, sender=None, stanzaType='get'):
     277    def __init__(self, recipient=None, sender=None, stanzaType=None):
    278278        Stanza.__init__(self, recipient=recipient, sender=sender)
    279         self.stanzaType = stanzaType
     279        if stanzaType is not None:
     280            self.stanzaType = stanzaType
    280281
    281282
Note: See TracChangeset for help on using the changeset viewer.