sc.statusmessage.message

class qc.statusmessage.message.Message(msg=u'', **kws)

A Message object can store a message and any additional attributes as long as they can be encoded in JSON format. Per default it only takes the message but you can add additional data via keyword arguments like this:

msg = Message(u'my message', typ = 1, format='restructuredText')
class qc.statusmessage.message.MessageList(initlist=None)

a list of messages

You can store more than one message as a statusmessage. You simply store them inside this list like object.

Previous topic

How to use it in your application

Next topic

sc.statusmessage.middleware

This Page

Quick search