[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: http://mail.zope.org/pipermail/zope-tests/2005-April/002023.html

Subject: UNKNOWN : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Wed Apr 27 22:27:05 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-April/002024.html


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Wed Apr 27 22:19:34 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-April/002019.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Apr 27 22:21:04 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-April/002020.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Apr 27 22:22:34 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-April/002021.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Wed Apr 27 22:24:04 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-April/002022.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


[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 - [EMAIL PROTECTED] - phone +49 3496 30 99 112 -
fax +49 3496 30 99 118 - zope and plone consulting and development


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[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 large.'
(Upload size is more than 15MB)
Michael
--
http://zope.org/Members/d2m
http://planetzope.org
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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

 
 Hi Christian,
 just tried it and got an error too: 'The request or reply is too large.'
 (Upload size is more than 15MB)

I think we hacked in something like this to keep the warez d00dz from
abusing the site.  I don't know how to get to the cache setup, so I'm
CC'ing Andrew, who does.

Tres.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCcM1bGqWXf00rNCgRAhWvAKCLjO2OrHxGcCSef4eF5W2JYoAtYQCfSSaC
BnvadkjqOsfoBGrwp1SZELs=
=BcTe
-END PGP SIGNATURE-

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


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 Theune
 Sent: Thursday, April 28, 2005 2:32 AM
 To: zope-dev@zope.org
 Subject: [Zope-dev] Uploading Windows release 2.8b1
 
 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 - [EMAIL PROTECTED] - phone +49 3496 30 99 112 -
 fax +49 3496 30 99 118 - zope and plone consulting and development

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


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
 http://planetzope.org
 
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )

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


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 - 06366 koethen - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 3496 30 99 112 -
fax +49 3496 30 99 118 - zope and plone consulting and development


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[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 for non-SSL access to Zope, I'm rather stumped regarding SSL.  
I've done non-SSL proxying for years with mod_rewrite, and it was really 
a snap, so I'm surprised that this is so difficult.

Zope is working just fine when I access it directly (using HTTP) on port 
8080.  I have installed the (self-signed) SSL certificate into Apache 
without any trouble, and am able to access individual documents on disk 
via SSL, using Apache.  So if all I would want is to use Apache with 
SSL, I would be done by now. 

Here is the relevant portion of the Apache configuration file (with 
names and numbers changed somewhat):

   VirtualHost 66.123.23.17:443
   ServerName myserver.com
   ServerAdmin [EMAIL PROTECTED]
   SSLProxyEngine on
   RewriteEngine On
   RewriteRule ^/(.*)
   http://localhost:8080/VirtualHostBase/https/myserver.com:443/app/$1
   [L,P]
   /VirtualHost
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 Apache, which (in turn) sends it back to me.

But of course, that doesn't happen.   Zope's provides indicates that 
many of the requests begin with \x80g\x01\x03.  My guess is that the 
SSL request is being piped to Zope directly, but it's hard to know from 
just a few characters.  Does this mean that I need to do some more 
translating, from HTTP into HTTPS?   

Not that it should make any difference, but I'm running Apache 2.0.52 on 
Red Hat Enterprise 4.0, with Zope 2.7.5 and Python 2.3.4.

Thanks in advance for any advice you might have,
Reuven
___
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] 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_ http://localhost:8080/p_
ProxyVia on
SSLEngine on
SSLCertificateFile /path/to/my/server.crt
SSLCertificateKeyFile /path/to/my/server.key
/virtualhost

i have to admit that i never tried mod_rewrite on this issue before,
so i can't tell you what's wrong with your config, i just can give you
an working solution :)

regards, juergen herrmann



[ 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.  Unfortunately, while it was a piece of cake to set up a
 proxy for non-SSL access to Zope, I'm rather stumped regarding SSL.
 I've done non-SSL proxying for years with mod_rewrite, and it was really
 a snap, so I'm surprised that this is so difficult.

 Zope is working just fine when I access it directly (using HTTP) on port
 8080.  I have installed the (self-signed) SSL certificate into Apache
 without any trouble, and am able to access individual documents on disk
 via SSL, using Apache.  So if all I would want is to use Apache with
 SSL, I would be done by now.

 Here is the relevant portion of the Apache configuration file (with
 names and numbers changed somewhat):

 VirtualHost 66.123.23.17:443
 ServerName myserver.com
 ServerAdmin [EMAIL PROTECTED]

 SSLProxyEngine on
 RewriteEngine On

 RewriteRule ^/(.*)
 http://localhost:8080/VirtualHostBase/https/myserver.com:443/app/$1
 [L,P]

 /VirtualHost

 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 Apache, which (in turn) sends it back to me.

 But of course, that doesn't happen.   Zope's provides indicates that
 many of the requests begin with \x80g\x01\x03.  My guess is that the
 SSL request is being piped to Zope directly, but it's hard to know from
 just a few characters.  Does this mean that I need to do some more
 translating, from HTTP into HTTPS?

 Not that it should make any difference, but I'm running Apache 2.0.52 on
 Red Hat Enterprise 4.0, with Zope 2.7.5 and Python 2.3.4.

 Thanks in advance for any advice you might have,

 Reuven

 ___
 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 )



___

 XLhost.de - eXperts in Linux hosting 

Juergen Herrmann
Weiherweg 10, 93051 Regensburg, Germany
Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027

ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
WEB:  http://www.XLhost.de
___
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] 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.  Unfortunately, while it was a piece of cake to set up a
 proxy for non-SSL access to Zope, I'm rather stumped regarding SSL.  
 I've done non-SSL proxying for years with mod_rewrite, and it was really
 a snap, so I'm surprised that this is so difficult.
[snip]

I copy-paste bellow something similar... It's a bit more what you
wanted, as it let you access the t1.net with HTTP and HTTPS, and t2.net
with HTTP only.

1. In Zope, I have made a VirtualHostMonster. I guess doesn't mater where I
do it, but it happens to be in the root of the ZODB.

2. In the Apache2 httpd.conf (the /siteRoot_t1.net is a Plone object
that corresponds to http://t1.net/, etc.):

...

NameVirtualHost *:80

VirtualHost *:80
ServerName t1.net
ProxyPass / 
http://localhost:8080/VirtualHostBase/http/t1.net:80/siteRoot_t1.net/VirtualHostRoot/
ProxyPassReverse / 
http://localhost:8080/VirtualHostBase/http/t1.net:80/siteRoot_t1.net/VirtualHostRoot/
/VirtualHost

VirtualHost *:80
ServerName t2.net
ProxyPass / 
http://localhost:8080/VirtualHostBase/http/t2.net:80/siteRoot_t2.net/VirtualHostRoot/
ProxyPassReverse / 
http://localhost:8080/VirtualHostBase/http/t2.net:80/siteRoot_t2.net/VirtualHostRoot/
/VirtualHost

VirtualHost _default_:443
ServerName t1.net

SSLEngine On
SSLCertificateFile conf/ssl/t1.cert
SSLCertificateKeyFile conf/ssl/t1.key
SetEnvIf User-Agent .*MSIE.* \
 nokeepalive ssl-unclean-shutdown \
 downgrade-1.0 force-response-1.0
#CustomLog logs/ssl_request_log \
#  %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b

ProxyPass / 
http://localhost:8080/VirtualHostBase/https/t1.net:443/siteRoot_t1.net/VirtualHostRoot/
ProxyPassReverse / 
http://localhost:8080/VirtualHostBase/https/t1.net:443/siteRoot_t1.net/VirtualHostRoot/
/VirtualHost

...


___
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 )


[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 setting the Content-type appropriately and the
Content-Disposition to attachment; filename=whatever' works.  I
have not been able to get Internet Explorer to work properly though. 
Has anyone got this working?  If so, how?

Here is a full run down of the problem...

I believe Internet Explorer uses a combination of the following to
decide what to do with a file:

  o  The Content-Type header.
  o  The Content-Disposition header's value.
  o  The Content-Disposition header's filename attribute's extension.
  o  The extension of the external method.
  o  The first part (200 bytes?) of the file contents.
  o  The phase of the moon.  (well, perhaps not, but it's starting to
feel like it.)

It then does one of the following:

  o  Displays the file inline in the browser.
  
  o  Displays the file open/save dialog.  Clicking the save button
saves the file.
  Clicking the open button launches the application that is
associated with the
  file type IE has assumed the file to be but that application
gives a file not found
  error.

  o  Displays the file open/save dialog.  Clicking on open or save
displays another
  file open/save dialog.  Clicking the save button again saves the file.  
  Clicking the open button again launches the application that is
associated with
  the file type IE has assumed the file to be but that application
gives a file not
  found error.

The filename of the file saved or the suggested filename when saving a
file being viewed inline is sometimes the filename attribute in the
content-disposition header and sometimes
external_method?query=string.ext.

I have tried various combinations of the following:

  o  Setting the Content-Type header to the file type, application/octet-stream,
  application/x-force-download, etc

  o  Not setting the Content-Type header.

  o  Setting the Content-Disposition header to inline, attachment and download
  with and without a filename attribute.

  o  Not setting the Content-Disposition header.

  o  Naming the external method filename.ext where ext is zip, pdf or xls as 
  appropriate.

  o  Hard coding the settings in the external method and not using a
query string.

Despite all this I have completely failed to get MSIE to behave in a
sane manner and would greatly appreciate any advice anyone has on the
matter.

With thanks,


Calisp
___
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] 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 Apache, which (in turn) sends it back to me.
 
 But of course, that doesn't happen.   Zope's provides indicates that
 many of the requests begin with \x80g\x01\x03.
[...]

The following works for me... 

-
VirtualHost [ip_address]:443

ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/httpd/ssl/[domain].crt
SSLCertificateKeyFile /etc/httpd/ssl/[domain].key

SetEnvIf User-Agent .*MSIE.* \
 nokeepalive ssl-unclean-shutdown \
 downgrade-1.0 force-response-1.0

CustomLog logs/ssl_request_log \
  %t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b

ServerName [domain]
RewriteEngine On
ProxyVia On
RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/https/[domain]:443/folder/VirtualHostRoot/$1
[L,P]

Location /manage
Order Deny,Allow
Deny from All
/Location

/VirtualHost
-

HTH,

Calisp
___
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 )


[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 
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
  SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
  RewriteEngine On
  RewriteRule ^/(.*) 
http://localhost:8080/VirtualHostBase/https/your.domain.com:443/VirtualHostRoot/$1 
[P,L]
/VirtualHost
/IfDefine

Note: this module also depends on the proxy module, but the sintax
is diferent.
Regards,
Josef
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.  Unfortunately, while it was a piece of cake to set up a 
proxy for non-SSL access to Zope, I'm rather stumped regarding SSL.  
I've done non-SSL proxying for years with mod_rewrite, and it was really 
a snap, so I'm surprised that this is so difficult.

Zope is working just fine when I access it directly (using HTTP) on port 
8080.  I have installed the (self-signed) SSL certificate into Apache 
without any trouble, and am able to access individual documents on disk 
via SSL, using Apache.  So if all I would want is to use Apache with 
SSL, I would be done by now.
Here is the relevant portion of the Apache configuration file (with 
names and numbers changed somewhat):

   VirtualHost 66.123.23.17:443
   ServerName myserver.com
   ServerAdmin [EMAIL PROTECTED]
   SSLProxyEngine on
   RewriteEngine On
   RewriteRule ^/(.*)
   http://localhost:8080/VirtualHostBase/https/myserver.com:443/app/$1
   [L,P]
   /VirtualHost
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 Apache, which (in turn) sends it back to me.

But of course, that doesn't happen.   Zope's provides indicates that 
many of the requests begin with \x80g\x01\x03.  My guess is that the 
SSL request is being piped to Zope directly, but it's hard to know from 
just a few characters.  Does this mean that I need to do some more 
translating, from HTTP into HTTPS?  
Not that it should make any difference, but I'm running Apache 2.0.52 on 
Red Hat Enterprise 4.0, with Zope 2.7.5 and Python 2.3.4.

Thanks in advance for any advice you might have,
Reuven
___
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 )

___
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 )


[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 using IMP, the Internet Messaging Program.

___
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] 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 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?
 Best regards.
 Jean Tinguely.
 

-- David
___
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] 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 product. External methods
are documented in the Zope Book. Zope products are covers by the Zope 
Developers Guide.

-aj


pgpvt9MmY4Nl8.pgp
Description: PGP signature
___
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] 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 much documentation, unfortunately.

success
André


On 4/28/05, David Convent [EMAIL PROTECTED] wrote:
 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 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?
 
   Best regards.
   Jean Tinguely.
 
 
 
 -- David
 ___
 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 )

___
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] 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 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 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?
 
   Best regards.
   Jean Tinguely.
 
 
 
 -- David






This message was sent using IMP, the Internet Messaging Program.

___
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 )


[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 regards.
   Jean Tinguely.


This message was sent using IMP, the Internet Messaging Program.

___
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] 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/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 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 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 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?
  
Best regards.
Jean Tinguely.
  
  
  
  -- David
 
 
 
 This message was sent using IMP, the Internet Messaging Program.
 
 ___
 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 )

___
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 )


[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 of ExternalMethods, but that is just a guess.

Nope.  ExternalMethods are free to use whatever Python libraries they
want.  The OP seemed to be asking how to turn off the access / import
checking for untrusted code, which is the only case where the Guard /
RestrictedPython stuff matters.

Nobody here is too willing to help him shoot himself in that foot,
offering instead pointers to the approved mechanisms (filesystem-based
Products / External Methods).

Tres.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCcNcvGqWXf00rNCgRAuKYAJ9obFgV3KOBg2Sa/H2g2dQakBLHRQCfZT0l
ZgkvzT/+a+VVPl9Y6pBEIiY=
=XE7M
-END PGP SIGNATURE-
___
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] 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 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.

 Nope.  ExternalMethods are free to use whatever Python libraries they
 want.  The OP seemed to be asking how to turn off the access / import
 checking for untrusted code, which is the only case where the Guard /
 RestrictedPython stuff matters.

 Nobody here is too willing to help him shoot himself in that foot,
 offering instead pointers to the approved mechanisms (filesystem-based
 Products / External Methods).

 Tres.
 - --
 ===
 Tres Seaver[EMAIL PROTECTED]
 Zope Corporation  Zope Dealers   http://www.zope.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.5 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFCcNcvGqWXf00rNCgRAuKYAJ9obFgV3KOBg2Sa/H2g2dQakBLHRQCfZT0l
 ZgkvzT/+a+VVPl9Y6pBEIiY=
 =XE7M
 -END PGP SIGNATURE-
 ___
 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 )






This message was sent using IMP, the Internet Messaging Program.

___
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] 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 running behind a web server like
apache?
In the latter you'll have to change the default encoding in the apache
config, too.

Peter

-- 
___
Dr. HagenPartner GmbH
Am Weichselgarten 7
91058 Erlangen
Tel: (0049)9131/691-330
Fax: (0049)9131/691-248
___


___
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] 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 in
 my
 webbrowser, the files are always received in windows-1252.
 
 
 Do you access zope directly or are you running behind a web server like
 apache?
 In the latter you'll have to change the default encoding in the apache
 config, too.

 Peter

 --
 ___
 Dr. HagenPartner GmbH
 Am Weichselgarten 7
 91058 Erlangen
 Tel: (0049)9131/691-330
 Fax: (0049)9131/691-248
 ___








This message was sent using IMP, the Internet Messaging Program.

___
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] 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 windows-1252.
  


 Do you access zope directly or are you running behind a web server like
 apache?
 In the latter you'll have to change the default encoding in the apache
 config, too.

Out of curiosity: How is that? I would think that Zope creates the whole
HTTP response (so including the Content-Type: text/html;charset=utf-8
header). OK, mod proxy and such may change some headers in it, but the
Content-Type's charset? The charset is about the HTTP response body,
which is surely created inside Zope.

 Peter

-- 
Best regards,
 Daniel Dekany

___
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] 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 are always received in windows-1252.
 

  

Do you access zope directly or are you running behind a web server like
apache?
In the latter you'll have to change the default encoding in the apache
config, too.



Out of curiosity: How is that? I would think that Zope creates the whole
HTTP response (so including the Content-Type: text/html;charset=utf-8
header). OK, mod proxy and such may change some headers in it, but the
Content-Type's charset? The charset is about the HTTP response body,
which is surely created inside Zope.
  

Right, the page itself will be delivered in uft-8.
When we connected directly to zope the encoding was set to utf-8.

It's just that if you're using Apache in front of zope the browser
switches to the encoding which Apache is set to.
After we changed the default character set from ISO-8859-1 to utf-8 the
browser automatically changed it's character encoding to utf-8.

Peter

-- 
___
Dr. HagenPartner GmbH
Am Weichselgarten 7
91058 Erlangen
Tel: (0049)9131/691-330
Fax: (0049)9131/691-248
___


___
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] 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 the server. But 
 in my
 webbrowser, the files are always received in windows-1252.
   
 
 
  Do you access zope directly or are you running behind a web server like
  apache?
  In the latter you'll have to change the default encoding in the apache
  config, too.
 
 Out of curiosity: How is that? I would think that Zope creates the whole
 HTTP response (so including the Content-Type: text/html;charset=utf-8
 header). OK, mod proxy and such may change some headers in it, but the
 Content-Type's charset? The charset is about the HTTP response body,
 which is surely created inside Zope.

Yes. Its entirely Zopes job. And if you are using pure Zope, you need
to set the header in the publish process, e.g. with a python script
or something you use for default display. Also you need to set a
property manage_page_charset in zopes root to be able to use that
encoding in ZMI too. This way you arent storing unicode - only utf-8
as you want to display it.

Regards
Tino

-- 
Tino Wildenhain [EMAIL PROTECTED]

___
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 )


[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 attribute 'append'

I know for a fact that this variable exists since flushing the SESSION
attribute of the REQUEST variable using dtml-var REQUEST.SESSION
yields its name and shows that it is initially empty.

I am using the following statement to append items:

dtml-call 
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, 
description])

The strange thing is that when I change the name of this variable to
'undergradProjectsDirected', the error does not occur anymore.

Has anyone experienced something similar? I think a variable with the same
name exists (perhaps I created one in another one of my intranet
applications) and Zope is referring to the old copy instead of the newly
created one. I tried flushing the transient object container as well but
it did not make a difference.

Any help would be greatly appreciated. Thank you.

- Asad
___
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] 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 variable, I get the following
error:
AttributeError: 'NoneType' object has no attribute 'append'
I know for a fact that this variable exists since flushing the SESSION
attribute of the REQUEST variable using dtml-var REQUEST.SESSION
yields its name and shows that it is initially empty.
I am using the following statement to append items:
dtml-call
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
ame, description])
The strange thing is that when I change the name of this variable to
'undergradProjectsDirected', the error does not occur anymore.
Check the spelling of your session key! Of course you're getting an
error when you are trying to append to something that does not exist.
-aj


pgpdwVXdEAQZ1.pgp
Description: PGP signature
___
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] 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 wrote:



 --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 variable, I get the following
  error:
 
  AttributeError: 'NoneType' object has no attribute 'append'
 
  I know for a fact that this variable exists since flushing the SESSION
  attribute of the REQUEST variable using dtml-var REQUEST.SESSION
  yields its name and shows that it is initially empty.
 
  I am using the following statement to append items:
 
  dtml-call
  (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
  ame, description])
 
  The strange thing is that when I change the name of this variable to
  'undergradProjectsDirected', the error does not occur anymore.

 Check the spelling of your session key! Of course you're getting an
 error when you are trying to append to something that does not exist.

 -aj


___
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 )


[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 username and password. Even after I enter it
correctly (the same values that I entered through zpasswd), I keep
getting the same dialog box over and over again and I'm not able to
proceed beyond this stage. Where am I going wrong?

Vishwas.
___
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] 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:
 
 AttributeError: 'NoneType' object has no attribute 'append'
 
 I know for a fact that this variable exists since flushing the SESSION
 attribute of the REQUEST variable using dtml-var REQUEST.SESSION
 yields its name and shows that it is initially empty.
 
 I am using the following statement to append items:
 
 dtml-call 
 (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_name, 
 description])
 
 The strange thing is that when I change the name of this variable to
 'undergradProjectsDirected', the error does not occur anymore.

Once you get beyond this problem, you may want to think about persistence 
issues.  See The Zope Book for details.   The list probably should be an 
instance of a PersistentList and you should use the copy-out/copy-in 
technique described in the API and in the Developers Guide.


___
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] 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 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] 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.
- Asad
On Thu, 28 Apr 2005, Andreas Jung wrote:

--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 variable, I get the following
 error:

 AttributeError: 'NoneType' object has no attribute 'append'

 I know for a fact that this variable exists since flushing the SESSION
 attribute of the REQUEST variable using dtml-var REQUEST.SESSION
 yields its name and shows that it is initially empty.

 I am using the following statement to append items:

 dtml-call
 (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([studen
 t_n ame, description])

 The strange thing is that when I change the name of this variable to
 'undergradProjectsDirected', the error does not occur anymore.
Check the spelling of your session key! Of course you're getting an
error when you are trying to append to something that does not exist.
-aj





pgp30x1ZT9Eo3.pgp
Description: PGP signature
___
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] 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 pointing out an inconsistency in your original
post, and you should check and make sure that the inconsistency does
not actually exist in your program.
First you indicate that you set a variable called
undergradProjectsDirected:
I declare using the following syntax:
dtml-call REQUEST.SESSION.set('undergradProjectsDirected', [ ])
But then you indicate that you are using the following to add items:
I am using the following statement to append items:
dtml-call
(REQUEST.SESSION.get('undergraduateProjectsDirected')).append([student_n
ame, description])
Notice that this time you are using undergraduateProjectsDirected.
Please check and then indicate whether this is true in your actual
program.  Obviously, if you are goign to change the name of the
variable, you have to be consistent.  Andreas is just indicating
that perhaps you haven't been careful to ensure this.
HTH,
JZ
___
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] 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.
2.6.4 is old and obsolete.
-aj

pgp1ZlWJ8UHlo.pgp
Description: PGP signature
___
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] 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 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.
 2.6.4 is old and obsolete.
 
 -aj
 
 ___
 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 )
 
 
 
 


-- 
http://liquid.homelinux.org/
___
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] 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 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 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] 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.
 
  - Asad
 
 
  On Thu, 28 Apr 2005, Andreas Jung wrote:
 
 
 
  --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 variable, I get the following
   error:
  
   AttributeError: 'NoneType' object has no attribute 'append'
  
   I know for a fact that this variable exists since flushing the SESSION
   attribute of the REQUEST variable using dtml-var REQUEST.SESSION
   yields its name and shows that it is initially empty.
  
   I am using the following statement to append items:
  
   dtml-call
   (REQUEST.SESSION.get('undergraduateProjectsDirected')).append([studen
   t_n ame, description])
  
   The strange thing is that when I change the name of this variable to
   'undergradProjectsDirected', the error does not occur anymore.
 
  Check the spelling of your session key! Of course you're getting an
  error when you are trying to append to something that does not exist.
 
  -aj
 
 




___
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] 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 install it from the Zope sources.
 2.6.4 is old and obsolete.
 
 -aj



Debian sarge (testing) has 2.7.5 available, so I'd expect that to
probably be in ubuntu as well.  The package name is zope2.7 though (the
zope package will install the 2.6 version).

Not that the advice to install from source is bad, but I thought it was
worth pointing out that there is another option.
~c

___
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] 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 sources where the installation is documented then is  more straight 
forward
then dealing with undocumented packages, unknown ports etc. *wink*

-aj

pgpUZHhU58a9P.pgp
Description: PGP signature
___
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] 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 ) don't reconize the generated document as a PDF.

I'm calling this external method through a dtml-var gerar_tce_pdf() 
tag, inside a DTML DOCUMENT.

def gerarTCE(self):
from reportlab.pdfgen import canvas
import string
import os   
c = canvas.Canvas(hello.pdf)
c.drawString(100,100,Hello World)
c.showPage()
c.save()

arquivo = open(hello.pdf).read()
R = self.REQUEST.RESPONSE
R.setHeader('content-type', 'application/pdf')
R.setHeader('content-length', str(len(arquivo)))
R.write(arquivo)
Thanks for helping... :)
Fernando Lujan
___
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 )


[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.unrestrictedTraverse('/folder')
Traceback (most recent call last):
  File stdin, line 1, in ?
NameError: name 'root' is not defined
what's wrong here?
Therefore I used fsrefs.py and got information like
oid 0x030571 Products.CMFCore.ActionInformation.ActionInformation
last updated: 2005-03-14 08:20:34.643177, tid=0x35BE85493CF9666L
refers to invalid object:
oid 0x0304fa object creation was undone:
'Products.CMFCore.Expression.Expression'
For this oid I get
 python
Python 2.4 (#1, Jan 14 2005, 00:24:33)
[GCC 2.95.3 20010315 (release)] on sunos5
Type help, copyright, credits or license for more information.
 from Zope.Startup.run import configure;configure('/etc/zope.conf')
 from Zope import app
 from ZODB.utils import p64
 from ZODB import POSException
 app = app()
 obj = app._p_jar[p64(0x030571)]
 print obj.getId()
view
 print obj.bobobase_modification_time()
2005/03/14 09:20:34.643 GMT+1
 print obj.meta_type
simple item
 print obj.__ac_local_roles__
None
Could anybody tell me, how I can delete this object from Data.fs?
Will obj.manage_delObjects(id) do the job for me? What parameters
do I have to give to the programm?
Thanks a lot in advance
  Michael

begin:vcard
fn:Michael Kaplan
n:Kaplan;Michael
org;quoted-printable:Technische Universit=C3=A4t M=C3=BCnchen;Zentrum Mathematik 
adr;quoted-printable:;;Boltzmannstr. ;Garching bei M=C3=BCnchen;;85747;Germany 
email;internet:[EMAIL PROTECTED]
title:Dr.
tel;work:+49 89 289 17064
tel;fax:+49 89 289 17457
url:http://triton.ma.tum.de/~kaplan/
version:2.1
end:vcard

___
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-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 page to database
 via ZPTs and ZSQL objects.  Can you point me to such a reference?

Yes, the Zope book is the place to look.

You create a ZSQL method with the SQL code

You then call this method through your ZPT or better in the case of posting 
from page to database a PythonScript which in turn calls the ZSQL method and 
passes the parameters.

Charlie
-- 
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
  Python/Zope Consulting and Support ...http://www.egenix.com/
  mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
  mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db