Re: [Zope] MessageDialog

2000-07-11 Thread Chris Withers

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:



:(

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] MessageDialog

2000-07-11 Thread Andy McKay

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" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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  -  [EMAIL PROTECTED]
> 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 )
>


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] MessageDialog

2000-07-11 Thread Chris Withers

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  -  [EMAIL PROTECTED]
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 )