common.message (version 0.1, 9 April 2003)
index
e:\bothans\common\message.py

This module contains some useful constants for using XML Messages.
The only real constraint for XML messages is they must not include
the constant MESSAGE_SEPARATOR

 
Modules
            
array
logging
pyRXP
time
types
common.xmlutils
 
Classes
            
Message
MessageBuilder
 
class Message
       
   Methods defined here:
__init__(self, xmlstring, peer=None)
Create a message class from an XML string
isMessage(self)
messageType(self, type)
toSendFormat(self)
toXml(self)
valid(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.message'
 
class MessageBuilder(Message)
      Simple class, you pass a XML string of the type
<element><another>%(varname_for_another)s</another></element>
 
and a hash. In the hash, there must be a key varname_for_another
and MessageBuilder will put this variable in the message in the tag
another
 
I force no one to use that, it's just rock simple and powerful to use
 
   Methods defined here:
__init__(self, type, hash)

Data and non-method functions defined here:
__doc__ = "Simple class, you pass a XML string of the type\n...t, it's just rock simple and powerful to use\n "
__module__ = 'common.message'

Methods inherited from Message:
isMessage(self)
messageType(self, type)
toSendFormat(self)
toXml(self)
valid(self)
 
Data
             MESSAGE_SEPARATOR = 'EOM\r\n'
__author__ = 'Michel Rasschaert <mrasschaert@neocles.com>'
__date__ = '9 April 2003'
__file__ = r'e:\bothans\common\message.pyc'
__license__ = 'This file is part of Bothans\n\n Bothans is fre...lace, Suite 330, Boston, MA 02111-1307 USA\n '
__name__ = 'common.message'
__status__ = 'alpha'
__version__ = '0.1'
log = <logging.Logger instance at 0x00A53938>
 
Author
             Michel Rasschaert <mrasschaert@neocles.com>