Changeset 457

Show
Ignore:
Timestamp:
05/14/08 11:01:23 (8 months ago)
Author:
mgoldman
Message:

Fix the constructor to know about other useful fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/trunk-pmd-intproto/network/protocol.py

    r394 r457  
    1414class Message: 
    1515         
    16         def __init__(self, msg = None, type = None): 
     16        def __init__(self, msg = None, type = None, body=None, targets=None): 
    1717                self.msg  = msg 
    1818                self.type = type 
     19                if body != None: 
     20                        self.body = body 
     21                if targets != None: 
     22                        self.targets = targets 
     23