[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 >>> obj=root.unrestrictedTra

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

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] 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 Zop

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. #2. - Asad On Thu, 28 Apr 2005, Andreas Jung wrote: > > You said you set the variable through: > > > > > You wrote that this does not work: > > "(REQUEST.SESSION.get('undergraduateProjectsDirected')).appe

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,

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 sourc

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 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 pointing out an inconsisten

Re: [Zope] Session Variable Error

2005-04-28 Thread Andreas Jung
You said you set the variable through: You wrote that this does not work: Of course it does not work because in both cases the names of the session vars are completely different.. so why should this work? -aj --On Donnerstag, 28. April 2005 13:56 Uhr -0400 Asad Habib <[EMAIL PROTECTED]> wrot

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: > > > > When I try to append items to this list variable, I get the following > error: > > AttributeError: 'NoneType' object has no attribute '

[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 userna

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 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 wrote: > > > --On Donner

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: When I try to append items to this list variable, I get the following error: AttributeError: 'NoneTyp

[Zope] Session Variable Error

2005-04-28 Thread Asad Habib
I have a session variable called 'undergraduateProjectsDirected' that I declare using the following syntax: When I try to append items to this list variable, I get the following error: AttributeError: 'NoneType' object has no attribute 'append' I know for a fact that this variable exists since

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"

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

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 r

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

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 a

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 n

[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 us

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 4/2

Re: [Zope] Charset

2005-04-28 Thread Andreas Jung
--On Donnerstag, 28. April 2005 12:29 Uhr +0200 [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-12

[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?

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

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 mu

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 Zope

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 PROTECT

[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 sent

[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: ServerName your.domain.com ServerAlias your.domain.com *.your.domain.com SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+

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 ba

[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 set

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 Zo

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: ServerName foo.com ServerAdmin [EMAIL PROTECTED] ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_ http://localhost:8080/p_ P