[Zope] redirect after file upload

2006-03-10 Thread Olivier Wambacq
hello people,

I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.
So after upload, I want it to redirect to this page again, and not to the
plfng_view of plonelocalfolderNG.

I tried putting a javascript in this file, and changing the links in
plfng_view, but I can't seem to find just where to put it.

maybe someone can help?

thanks
Olivier

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] redirect after file upload

2006-03-10 Thread Dieter Maurer
Olivier Wambacq wrote at 2006-3-10 10:57 +0100:
I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.

Thus, you use your own action wrapper which calls the orginal action
and then redirects as you want it. The second redirect
overrides the first one.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )