[Zope] Forcing all Zope access to come through an Apache/SSL proxy

2005-04-28 Thread Reuven M. Lerner
I've written a Zope application that needs to be behind SSL. I assumed that the most straightforward way to do this would be to (1) set up Zope on port 8080 and (2) use Apache to act as a proxy between the outside world and Zope. Unfortunately, while it was a piece of cake to set up a proxy

Re: [Zope] Forcing all Zope access to come through an Apache/SSL proxy

2005-04-28 Thread Jürgen Herrmann
hi! i use mod_proxy for this, here's the config snippet: virtualhost 1.2.3.4:443 ServerName foo.com ServerAdmin [EMAIL PROTECTED] ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_

Re: [Zope] Forcing all Zope access to come through an Apache/SSL proxy

2005-04-28 Thread Daniel Dekany
Thursday, April 28, 2005, 8:23:27 AM, Reuven M. Lerner wrote: I've written a Zope application that needs to be behind SSL. I assumed that the most straightforward way to do this would be to (1) set up Zope on port 8080 and (2) use Apache to act as a proxy between the outside world and Zope.

[Zope] External Method file generation Vs MSIE

2005-04-28 Thread calisp
Hi All, I have an external method that generates files - zip, pdf and xls. I would like the browser to present a file open/save dialog box and, depending on what the user clicks, open or save the file. Also, I want to be able to set the file name. Sounds simple enough and with most browsers

Re: [Zope] Forcing all Zope access to come through an Apache/SSL proxy

2005-04-28 Thread calisp
On 28/04/05, Reuven M. Lerner [EMAIL PROTECTED] wrote: [...] The above should make it possible (I believe), an HTTPS connection between my browser and my cup. Apache should then take that incoming SSL request and issue its own request to the Zope server. Zope will respond, sending it back to

[Zope] Re: Forcing all Zope access to come through an Apache/SSL proxy

2005-04-28 Thread Josef Meile
Hi, I saw that others already answered to your question; however, they use the proxy module and you are using rewrite, which is what I use: IfDefine SSL VirtualHost YOUR_IP:443 ServerName your.domain.com ServerAlias your.domain.com *.your.domain.com SSLEngine on SSLCipherSuite

[Zope] Code

2005-04-28 Thread Jean
Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that? Best regards. Jean Tinguely. This message was

Re: [Zope] Code

2005-04-28 Thread David Convent
Hi Jean, if you want to use python code in an unrestricted environement, you should use ExternalMethods or write Python based Zope product on your filesystem. External Methods are better choice to beging with. You can learn more about External Methods from the Zope Book. Regards, [EMAIL

Re: [Zope] Code

2005-04-28 Thread Andreas Jung
--On Donnerstag, 28. April 2005 11:21 Uhr +0200 [EMAIL PROTECTED] wrote: Hello the list, I want to use all the possibilities of python in my ZOPE local server. Do you know which file can I modify to enable this? Where must I contact to know that? By using external method or writing your own

Re: [Zope] Code

2005-04-28 Thread Andre Meyer
On the other hand, if you start with a file-system based product you will have complete freedom to do whatever you want in Python and it is easier to migrate to Zope3 (if you are not starting with this right away). File-system based are more difficult to develop in Zope2 because there is not too

Re: [Zope] Code

2005-04-28 Thread Jean
Hello, thanks for your answer. I'm looking into the file Guards.py and I don't understand how is the python code working in ZOPE. What is the meaning of a wrapper? Best regards. Jean Tinguely. Selon David Convent [EMAIL PROTECTED]: Hi Jean, if you want to use python code in an

[Zope] Charset

2005-04-28 Thread Jean
Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted the server. But in my webbrowser, the files are always received in windows-1252. Please, what can I do to receive UTF-8 from ZOPE 2.7.5-final? Best

Re: [Zope] Code

2005-04-28 Thread Andre Meyer
There are better experts than myself on this list, but I have never had a need to bother with this file for a file-system based product. You can just use the standard Python libraries. Probably, the Guard.py file protects users of ExternalMethods, but that is just a guess. good luck André On

[Zope] Re: Code

2005-04-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andre Meyer wrote: There are better experts than myself on this list, but I have never had a need to bother with this file for a file-system based product. You can just use the standard Python libraries. Probably, the Guard.py file protects users

Re: [Zope] Re: Code

2005-04-28 Thread Jean
Hello, Ok, I will use ExternalMethods. Thanks for your help. Best regards. Jean Tinguely. Selon Tres Seaver [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andre Meyer wrote: There are better experts than myself on this list, but I have never had a need to

Re: [Zope] Charset

2005-04-28 Thread Peter Eis
[EMAIL PROTECTED] wrote: Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted the server. But in my webbrowser, the files are always received in windows-1252. Do you access zope directly or are you

Re: [Zope] Charset

2005-04-28 Thread Jean
Hello, I reach my ZOPE server directly. Best regards. Jean Tinguely. Selon Peter Eis [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted the server. But

Re: [Zope] Charset

2005-04-28 Thread Daniel Dekany
Thursday, April 28, 2005, 3:11:01 PM, Peter Eis wrote: [EMAIL PROTECTED] wrote: Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted the server. But in my webbrowser, the files are always received in

Re: [Zope] Charset

2005-04-28 Thread Peter Eis
Daniel Dekany wrote: Thursday, April 28, 2005, 3:11:01 PM, Peter Eis wrote: [EMAIL PROTECTED] wrote: Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted the server. But in my webbrowser, the files

Re: [Zope] Charset

2005-04-28 Thread Tino Wildenhain
Am Donnerstag, den 28.04.2005, 15:48 +0200 schrieb Daniel Dekany: Thursday, April 28, 2005, 3:11:01 PM, Peter Eis wrote: [EMAIL PROTECTED] wrote: Hello the list, In Zope.conf ( ZOPE 2.7.5-final ) I changed rest-input-encoding and rest-output-encoding to send UTF-8 and then restarted

[Zope] Session Variable Error

2005-04-28 Thread Asad Habib
I have a session variable called 'undergraduateProjectsDirected' that I declare using the following syntax: dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ]) When I try to append items to this list variable, I get the following error: AttributeError: 'NoneType' object has no

Re: [Zope] Session Variable Error

2005-04-28 Thread Andreas Jung
--On Donnerstag, 28. April 2005 13:44 Uhr -0400 Asad Habib [EMAIL PROTECTED] wrote: I have a session variable called 'undergraduateProjectsDirected' that I declare using the following syntax: dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ]) When I try to append items to this list

Re: [Zope] Session Variable Error

2005-04-28 Thread Asad Habib
Actually, it does exist as I mentioned in my original message. If it did not exist, then dtml-var REQUEST.SESSION would yield a value of None for it. Also, if this were the case, then simply changing the name of the variable would not solve the problem. - Asad On Thu, 28 Apr 2005, Andreas Jung

[Zope] Unable to login to zope management interface on Ubuntu

2005-04-28 Thread Vishwas Narendra
Hi, I'm running Ubuntu (warty). I just installed zope 2.6.4-1.1 through synaptic. I created a user with the zpasswd inituser command. I could connect to the zope server on port 9673. The zope quick start page comes up. When I click on the management interface link, I'm asked to enter the

Re: [Zope] Session Variable Error

2005-04-28 Thread Dennis Allison
On Thu, 28 Apr 2005, Asad Habib wrote: I have a session variable called 'undergraduateProjectsDirected' that I declare using the following syntax: dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ]) When I try to append items to this list variable, I get the following error:

Re: [Zope] Session Variable Error

2005-04-28 Thread Andreas Jung
You said you set the variable through: dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ]) You wrote that this does not work: dtml-call (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, description]) Of course it does not work because in both cases the

Re: [Zope] Session Variable Error

2005-04-28 Thread John Ziniti
Asad Habib wrote: Actually, it does exist as I mentioned in my original message. If it did not exist, then dtml-var REQUEST.SESSION would yield a value of None for it. Also, if this were the case, then simply changing the name of the variable would not solve the problem. I think that Andreas is

Re: [Zope] Unable to login to zope management interface on Ubuntu

2005-04-28 Thread Andreas Jung
--On Donnerstag, 28. April 2005 23:28 Uhr +0530 Vishwas Narendra [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu (warty). I just installed zope 2.6.4-1.1 through synaptic. I created a user with the zpasswd inituser command. Get the latest Zope 2.7.6 version and install it from the Zope sources.

Re: [Zope] Unable to login to zope management interface on Ubuntu

2005-04-28 Thread Shane Graber
Or apt-get install zope2.7. Apt has packages for both 2.6.x (apt-get install zope) and Zope 2.7.x (apt-get install zope2.7). Shane On 4/28/05, Andreas Jung [EMAIL PROTECTED] wrote: --On Donnerstag, 28. April 2005 23:28 Uhr +0530 Vishwas Narendra [EMAIL PROTECTED] wrote: Hi, I'm

Re: [Zope] Session Variable Error

2005-04-28 Thread Asad Habib
Andreas, you misunderstood me. What I said is that #1 does not work but #2 does. #1. dtml-call REQUEST.SESSION.set('undergraduateProjectsDirected', []) #2. dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ]) - Asad On Thu, 28 Apr 2005, Andreas Jung wrote: You said you set the

Re: [Zope] Unable to login to zope management interface on Ubuntu

2005-04-28 Thread charlie derr
Andreas Jung wrote: --On Donnerstag, 28. April 2005 23:28 Uhr +0530 Vishwas Narendra [EMAIL PROTECTED] wrote: Hi, I'm running Ubuntu (warty). I just installed zope 2.6.4-1.1 through synaptic. I created a user with the zpasswd inituser command. Get the latest Zope 2.7.6 version and

Re: [Zope] Unable to login to zope management interface on Ubuntu

2005-04-28 Thread Andreas Jung
--On Donnerstag, 28. April 2005 14:27 Uhr -0400 charlie derr [EMAIL PROTECTED] wrote: Not that the advice to install from source is bad, but I thought it was worth pointing out that there is another option. The people can't figure out how the packages are configured then it is better use the

Re: [Zope] Generating and Downloading PDF.

2005-04-28 Thread Fernando Lujan
J Cameron Cooper wrote: It's easier to guess when you say what the problem is. I do see some funny indentation down at the bottom. OK, it's happen because I paste the code inside a html message, than it's happen. The following code is working. But I still have a problem. The browser ( firefox

[Zope] Corrupt Data.fs

2005-04-28 Thread Michael Kaplan
Hi, I just found out that my Data.fs is corrupt. Zope is still running, and restarting but I'm getting POSKeyErrors if a want to see folder contents and so on. I tried to follow the advice in http://www.zopelabs.com/cookbook/1095965033 (I use Zope-2.7.4) but end up with

[Zope-Coders] Zope tests: 4 OK, 2 Unknown

2005-04-28 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Wed Apr 27 11:01:02 2005 UTC to Thu Apr 28 11:01:02 2005 UTC. There were 6 messages: 6 from Zope Unit Tests. Unknown --- Subject: UNKNOWN : Zope-trunk Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Apr 27 22:25:35 EDT 2005 URL:

[Zope-dev] Uploading Windows release 2.8b1

2005-04-28 Thread Christian Theune
Hi, the upload didn't work again. If someone could put the file located at http://amy.gocept.com/~ctheune/Zope-2.8.0-b1-win32.exe to the right place? The proxy on Zope.org caught me again. Cheers, Christian -- gocept gmbh co. kg - schalaunische str. 6 - 06366 koethen - germany www.gocept.com

[Zope-dev] Re: Uploading Windows release 2.8b1

2005-04-28 Thread Michael Haubenwallner
Christian Theune wrote: Hi, the upload didn't work again. If someone could put the file located at http://amy.gocept.com/~ctheune/Zope-2.8.0-b1-win32.exe to the right place? The proxy on Zope.org caught me again. Hi Christian, just tried it and got an error too: 'The request or reply is too

[Zope-dev] Re: Uploading Windows release 2.8b1

2005-04-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Haubenwallner wrote: Christian Theune wrote: Hi, the upload didn't work again. If someone could put the file located at http://amy.gocept.com/~ctheune/Zope-2.8.0-b1-win32.exe to the right place? The proxy on Zope.org caught me again.

RE: [Zope-dev] Uploading Windows release 2.8b1

2005-04-28 Thread Andrew Sawyers
What happened? Too large of a file? I can up it for you otherwise, let me know and I'll check into it. Andrew -- Zope Managed Hosting Software Engineer Zope Corporation (540) 361-1700 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian

RE: [Zope-dev] Re: Uploading Windows release 2.8b1

2005-04-28 Thread Andrew Sawyers
I just bumped this up to 20MBs. Andrew -- Zope Managed Hosting Software Engineer Zope Corporation (540) 361-1700 Hi Christian, just tried it and got an error too: 'The request or reply is too large.' (Upload size is more than 15MB) Michael -- http://zope.org/Members/d2m

RE: [Zope-dev] Uploading Windows release 2.8b1

2005-04-28 Thread Christian Theune
Am Donnerstag, den 28.04.2005, 09:41 -0400 schrieb Andrew Sawyers: What happened? Too large of a file? I can up it for you otherwise, let me know and I'll check into it. Too large, unfortunately. The squid blocked the request. Cheers, Christian -- gocept gmbh co. kg - schalaunische str. 6

RE: [Zope-DB] ZPTs and database accesses

2005-04-28 Thread Charlie Clark
On 2005-04-28 at 20:26:47 [+0200], Ken Winter [EMAIL PROTECTED] wrote: Andreas - Thanks for your answer. I'm relieved to know that the ZPT-ZSQL combination will suffice for database accesses. As a Zope neophyte, though, I still need an example or tutorial showing me how to get data from