[Zope] Re-posting a form
Paul Gresham
gresham@mediavisual.com
Thu, 8 Jun 2000 01:55:48 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_001C_01BFD0EC.AAB4D420
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi, I have two cases where I have a user in Zope and capture information
from them, then need to re-post the data to another page. One case is I am
using WorldPilot and have customized it to have many instances of it,
segregating users into individual companies (a bit like hot office). I have
different instances of WorldPilot and attempt to jump to that instance from
a logon screen as such
Company:
User:
Password:
The instance of WorldPilot is named the same as Company:
(self.REQUEST['Company']) and the user becomes user.company@mydomain.com. I
have no problems with getting the objects, calling the worldpilot object
correctly and passing in my REQUEST object, however there seems to be some
problem with redirection, or setting the base url. I have tried setting this
with REQUEST['RESPONSE'].setBase but with no luck. It seems like I need to
redirect the browser to the correct URL for this to work, but then I lose my
REQUEST object! Does anyone have any ideas, I think I'm lacking some
understanding of the HTTP protocol, and getting myself deeper and deeper
into a mess !
The other case is where I actually have to read the information from a form
and then perform a HTTP POST to cgi program which handles my email admin.
I'd appreciate any pointers on how to get Python/Zope to perform a HTTP POST
to an external program.
Many Thanks
Gresh
------=_NextPart_000_001C_01BFD0EC.AAB4D420
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIItDCCAmcw
ggHQoAMCAQICAwKYKDANBgkqhkiG9w0BAQQFADCBlDELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdl
c3Rlcm4gQ2FwZTEUMBIGA1UEBxMLRHVyYmFudmlsbGUxDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UE
CxMUQ2VydGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAx
OTk5LjkuMTYwHhcNMDAwNTE3MTE0NzM5W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