[Zope] Products, levers and the dtmlExample folder on zope.org

Andy Smith andy.smith@iname.com
Mon, 8 Feb 1999 12:04:50 -0500


Ahhh... I knew this was doable in python but it hadn't occurred to me to
write it as an external method. Doh!

Thanks,

Andy.

> -----Original Message-----
> From: michel@aldous.inside [mailto:michel@aldous.inside]On Behalf Of
> Michel Pelletier
> Sent: Monday, February 08, 1999 10:43 AM
> To: Andy Smith
> Cc: The Dragon De Monsyne; zope@zope.org
> Subject: Re: [Zope] Products, levers and the dtmlExample folder on
> zope.org
>
>
> Andy Smith wrote:
>
> >
> >
> > 1/ Although I guess it shows the principle of how the lever
> works, it was a
> > little bit ugly and maybe not the best thing to shove out there as an
> > example. To tidy it up, I'd have liked to be able to add a
> messagedialogue
> > which returns the user back to manage_main when the OK button
> is pressed...
> > anyone know how it's done?
>
> from Globals import MessageDialog
>
> def blah(self):
>
>         if REQUEST: return MessageDialog(
>             title  ='Changed %s' % self.id,
>             message='%s has been updated' % self.id,
>             action =REQUEST['URL1']+'/manage_main',
>             target ='manage_main')
>
> -Michel
>
> >
> >
> > Cheers,
> >
> > Andy.
> >
>