Re: [Zope-dev] Redirecting from the manage interfaces.
Erik Enge wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? I do not think so. "manage_addImage" does not need REQUEST to add the image. The request is only used to redirect. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Redirecting from the manage interfaces.
Erik Enge wrote: On Wed, 19 Jul 2000, Chris Withers wrote: Why I'm asking is 'cos it'd be really nice not to have to keep re-writing UI when there's perfectly good stuff available in the management interface, things like add forms, edit forms, etc... Exactly. Great, so how do we solve this. The 'wrapping REQUEST adn RESPONSE' thing seesm a little hacky to me, if this isn't the case then could someone show us some code as to how to do it in a specific instance? If it is hacky, then how can we solve this long term? fishbowl time? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Redirecting from the manage interfaces.
Erik Enge wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? This is the problem we've experienced here at NIP... A convention I've seen that works just a little better is to redirect based on the existence of a RESPONSE object. You need RESPONSE to redirect, so if it isn't provided, you shouldn't redirect. Of course this needs to be documented and more reliable. Hmm, I wonder if you could specify in the RESPONSE object where the redirection would take place to? Why I'm asking is 'cos it'd be really nice not to have to keep re-writing UI when there's perfectly good stuff available in the management interface, things like add forms, edit forms, etc... However, if you call these from anywhere else, they dump you in the management interface when you're finished rather than going to where you want them to. Any ideas or am I missing the point? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Redirecting from the manage interfaces.
Chris Withers wrote: Why I'm asking is 'cos it'd be really nice not to have to keep re-writing UI when there's perfectly good stuff available in the management interface, things like add forms, edit forms, etc... However, if you call these from anywhere else, they dump you in the management interface when you're finished rather than going to where you want them to. Any ideas or am I missing the point? Silly idea: Write a wrapper that you put around the RESPONSE object that does its own thing when it is told to redirect. You might have to wrap the REQUEST object too, so that it returns a wrapped RESPONSE object. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Redirecting from the manage interfaces.
On Sat, 15 Jul 2000, Shane Hathaway wrote: call, it won't redirect. So you should be able to achieve the same results just by invoking manage_addImage without including the REQUEST object. But I have to pass something with the REQUEST, or else it won't add the image, right? A convention I've seen that works just a little better is to redirect based on the existence of a RESPONSE object. You need RESPONSE to redirect, so if it isn't provided, you shouldn't redirect. Of course this needs to be documented and more reliable. Ahh. :) Is this work-in-progress by someone? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )