Package lyntin :: Package ui :: Module message :: Class Message
[show private | hide private]
[frames | no frames]

Class Message


Encapsulates a message to be written to the user.
Method Summary
  __init__(self, data, messagetype, ses)
Initialize.
  __repr__(self)
Represents the message (returns data + type).
  __str__(self)
The string representation of the Message is the data itself.

Method Details

__init__(self, data, messagetype='LTDATA: ', ses=None)
(Constructor)

Initialize.
Parameters:
data - the message string
           (type=string)
messagetype - the message type (use a constant defined in ui.ui)
           (type=int)
ses - the session this message belongs to
           (type=session.Session)

__repr__(self)
(Representation operator)

Represents the message (returns data + type).

__str__(self)
(Informal representation operator)

The string representation of the Message is the data itself.

Generated by Epydoc 2.1 on Mon Aug 9 09:17:41 2004 http://epydoc.sf.net