[Seaside] Setting multipart form for a WAEditDialog subclass

Yar Hwee Boon hboon at motionobj.com
Wed Feb 2 04:02:24 CET 2005


On 02-Feb-05, at AM 09:04, Avi Bryant wrote:

> On Mon, 31 Jan 2005 00:42:38 +0800, Yar Hwee Boon 
> <hboon at motionobj.com> wrote:
>> I have a WAEditDialog subclass in which I would like to allow file
>> uploads. But I can't find any convenient place to set the form to
>> multipart. Any ideas? Thanks.
>
> The actual form is drawn by a FormDecoration; you could subclass that
> to get a MultipartFormDecoration, and then override #addForm to use
> that instead of the normal FormDecoration class.

Aarggh.. what was I thinking. Yes that was what I did. Except that I 
was overengineering by trying to provide a flag to the WAEditDialog 
subclass to indicate if I wanted multipart or not, and couldn't find an 
obvious way to do that. Sigh. Thanks!

--
HweeBoon
MotionObj
http://motionobj.com
(65) 6764-9774



More information about the Seaside mailing list