[Zope] MessageDialog with dtml?

2000-08-10 Thread Peter Arvidsson

Is it possible to display a MessageDialog with dtml only? I have
searched the mailinglist archives and found some postings about this but
the instructions there doesnt seem to work. Maybe MessageDialog has been
changed to 2.2 or something?

___
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 )




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:
 
 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

___
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] MessageDialog

2000-07-10 Thread Andy McKay

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



___
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 )