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. Thanks. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People
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
A thanks Chris. I had noticed that and was trying to see if I could do without using REQUEST. I couldnt so I went and changed all the calls to my class *sigh*. Thanks mate. ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Andy McKay" <AndyM@activestate.com> Cc: <zope@zope.org> Sent: Tuesday, July 11, 2000 1:27 AM Subject: Re: [Zope] MessageDialog
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
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Andy McKay wrote:
A thanks Chris. I had noticed that and was trying to see if I could do without using REQUEST. I couldnt so I went and changed all the calls to my class *sigh*. Thanks mate.
Sadly REQUEST and the client are always necessary. If you want to call your MessageDialog from anywhere in DTML as well as from python you'll need that pretty old favourite: <dtml-var "MessageDialog(_,_.None, ...your args...)"> :( cheers, Chris
participants (2)
-
Andy McKay -
Chris Withers