[Zope] MessageDialog

Chris Withers chrisw@nipltd.com
Tue, 11 Jul 2000 09:27:51 +0100


Andy McKay wrote:
> The MessageDialog is cool, but a little sparse, has anyone tried overriding
> it with their own or fiddling with it? Im looking at including standard
> header and footer in it and not gotten very far.

Butch did this in Squishdot, one of the changes I made for 0.4.1 was to
let headers adn footers be included, here's the code from Squishdot.py:

return self.showError(self, REQUEST=REQUEST,
                      ^^^^^^^^^^^^^^^^^^^^^
                       important bits
                      title='Data Missing',     
                      message=message,     
                      action=REQUEST['URL1']+'/previewPosting'     
                      )     

showError is a DTML method contained in the Squishdot folderish
object...

HTH,

Chris