"""Show the user a particular message."""
#Created: Sat Oct 28 17:27:03 PDT 2000
#Author: Shannon -jj Behrens
#Email: jjinux@users.sourceforge.net
#
#Copyright (c) Shannon -jj Behrens. All rights reserved.
from BaseController import BaseController
class message(BaseController):
def __call__(self):
"""Show the user a particular message.
The following form parameters are used:
messageId -- This is the id of the message to view.
"""
self.executeAction()
ctx = self._ctx
if not ctx.form.has_key("messageId"):
ctx.iLib.forward("message_list")
message = ctx.dba.Message.get(ctx.form["messageId"])
ctx.iLib.forward("message_view", message)
|