[Zope-dev] Re: Windows builds

2005-08-17 Thread Florian Schulze

On Sun, 14 Aug 2005 13:14:50 +0200, Christian Theune [EMAIL PROTECTED] wrote:


Hi,

I announced myself stepping back from doing the windows builds some
while ago. Although nobody stepped up in taking this task, I'll make a
hard cut right now.

I'm preparing the 2.8.1 builds right now and those will definitely be
the last windows builds prepared by me.

Two reasons for the stepping back: time constraints from my side and
technical unability to safely create the windows builds.

Cheers,
Christian




Many thanks for all your work!

Regards,
Florian Schulze

___
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] apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Faried Nawaz
Hello,It seems that if I use mod_deflate to compress zope's responses, I take amajor hit -- around 1.4 seconds without compression and around 16.4 seconds
with.I can't figure out what I'm doing wrong here.
I
have zope 2.7.7 running with the fast-cgi ZServer
enabled.Urls beginning with http://pkfinance.info/pkf-z1/
go to Zope.Here's what I see:a% /usr/bin/time curl -v -o /dev/null 
http://pkfinance.info/pkf-z1/news/index_html* About to connect() to 
pkfinance.info port 80* Trying 207.210.209.230... connected* Connected to pkfinance.info (
207.210.209.230) port 80 GET /pkf-z1/news/index_html HTTP/1.1
 User-Agent: curl/7.14.0 (i386-portbld-freebsd4.11) libcurl/7.14.0 OpenSSL/0.9.7d zlib/1.1.4 Host: pkfinance.info
 Accept: */*%
Total% Received % XferdAverage
Speed
TimeTime
TimeCurrent
DloadUpload Total
SpentLeftSpeed0
00
00
000
--:--:--0:00:01 --:--:-- 0
HTTP/1.1 200 OK Date: Wed, 17 Aug 2005 06:57:57 GMT Server: Apache/2.0.54 (FreeBSD) DAV/2 PHP/4.3.11 mod_webkit2/0.5 mod_fastcgi/2.4.2 X-Powered-By: Zope (
www.zope.org
), Python (www.python.org) Content-Length: 65751 Vary: Accept-Encoding,User-Agent Content-Type: text/html; charset=ISO-8859-1
100
65751100
657510
04474400:00:010:00:01
--:--:--196k* Connection #0 to host pkfinance.info left
intact* Closing connection #01.48
real 0.00
user 0.00 sysa%a% /usr/bin/time curl --compressed -v -o /dev/null http://pkfinance.info/pkf-z1/news/index_html
* About to connect() to 
pkfinance.info port 80* Trying 207.210.209.230... connected* Connected to pkfinance.info (
207.210.209.230) port 80 GET /pkf-z1/news/index_html HTTP/1.1
 User-Agent: curl/7.14.0 (i386-portbld-freebsd4.11) libcurl/7.14.0 OpenSSL/0.9.7d zlib/1.1.4 Host: pkfinance.info
 Accept: */* Accept-Encoding: deflate, gzip
%
Total% Received % XferdAverage
Speed
TimeTime
TimeCurrent
DloadUpload Total
SpentLeftSpeed0
00
00
000
--:--:--0:00:01 --:--:-- 0
HTTP/1.1 200 OK Date: Wed, 17 Aug 2005 07:00:10 GMT Server: Apache/2.0.54 (FreeBSD) DAV/2 PHP/4.3.11 mod_webkit2/0.5 mod_fastcgi/2.4.2 X-Powered-By: Zope (
www.zope.org
), Python (www.python.org) Content-Length: 65751 Vary: Accept-Encoding,User-Agent Content-Encoding: gzip
 Content-Type: text/html; charset=ISO-8859-1

13 65751
1387190
053000:02:040:00:160:01:48
0transfer closed with 57032 bytes remaining to read 13
65751
1387190
053000:02:040:00:160:01:48
0* Closing connection #0curl: (18) transfer closed with 57032 bytes remaining to read
16.46 real 0.01
user 0.01 sysa%The relevant bits of my httpd.conf:IfModule mod_fastcgi.cFastCgiExternalServer /home/pkf/www/docs/pkfinance.info/pkf-z1 -socket /home/pkf/pkf-z1/var/fcgi-socket -pass-header Authorization
/IfModuleVirtualHost *ServerName pkfinance.infoServerAlias 
www.pkfinance.infoServerAdmin 
[EMAIL PROTECTED]DocumentRoot /home/pkf/www/docs/pkfinance.infoErrorLog /home/pkf/www/logs/pkfinance.info/error.logCustomLog /home/pkf/www/logs/pkfinance.info/access.log combined# zope

IfModule mod_fastcgi.cLocation /pkf-z1SetHandler fastcgi-scriptSetOutputFilter DEFLATEBrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4\.0[678] no-gzip
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlBrowserMatch \bMSI[E] !no-gzip !gzip-only-text/htmlSetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-varyHeader append Vary User-Agent env=!dont-vary
/LocationDeflateFilterNote Input instreamDeflateFilterNote Output outstreamDeflateFilterNote Ratio ratioLogFormat '%t %r %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /home/pkf/www/logs/pkfinance.info/deflate.log deflate/IfModule/VirtualHostIn my deflate log I see stuff like[16/Aug/2005:11:40:03 -0500] GET /pkf-z1/news/index_html HTTP/1.1 8852/64328 (13%)
Thanks,Faried.


___
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] How to see zope error_log?

2005-08-17 Thread praba kar
Dear All,
 
   Can any one let me know how to see
zope error_log in zope version 2.7.4

regards
Prabahar








Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to 
http://in.promos.yahoo.com/rakhi/index.html
___
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] How to see zope error_log?

2005-08-17 Thread Andreas Jung



--On 17. August 2005 10:24:16 +0100 praba kar [EMAIL PROTECTED] wrote:


Dear All,

   Can any one let me know how to see
zope error_log in zope version 2.7.4



By clicking on error_log in the ZMI???

-aj

pgpkcWyOMfPKu.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 )


[Zope] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all goes ok

The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with 2 files:

Zope with these contents:

#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope
   /var/zope/sistes/bin/zopectl start
   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService $1

and StartupParameters.plist with these content:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyDescription/key
stringZope web application server/string
keyOrderPreference/key
stringNone/string
keyProvides/key
array
stringZope Server/string
/array
keyRequires/key
array
stringWeb Server/string
/array
/dict
/plist

With these 2 files zope doesn't start at boot time. For that question I 
try another StartupParameters.plist:


{
 Description = Zope WebServer;
 Provides= (Zope WebServer);
 Requires= (Web Server);
 OrderPreference = None;
 Messages =
 {
   start = Starting Zope WebServer Service;
   stop  = Stopping Zope WebServer Service;
 };
}

but It doesn't work too

Can anyone help me?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
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] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Pascal Peregrina
Hi,
 
I know that this is an unusual request, but if some of you have some time to
help me on this it would be great !
 
Basically, I can summarize the question I will have to answer this way :
why should we use Zope 2 instead of JSP/struts ?
 
All the business logic of the company is implemented in services that talk
to backend and can be queried through xmlrpc (so this is fine for Zope
integration).
 
So the context is to use Zope or JSP/struts to manage the presentation
layer.

I am currently planning to talk about built-in ZMI and transaction
management, TAL, ...
 
Thanks a lot for your help.
 
Pascal


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] Workflow question - additional information

2005-08-17 Thread David Pratt
I should have stated that my workflow script checks for image type in 
this directory. It uses PIL to make a variety of image sizes, but uses 
the pil image data to create a new object type in another directory. 
The workflow script deletes the image in the original directory after 
this has been done. Is there some way to perhaps test the size of the 
image's data and have the script wait until the data is there or 
involve the temp directory in some way (since uploading images through 
a form works with this workflow) so that the image is whole before the 
workflow script attempts to use it?


Regards,
David

On Wednesday, August 17, 2005, at 12:13 AM, David Pratt wrote:

I created a workflow for my images so that they would be processed as 
soon as they are transferred into a specific directory. It works fine 
when I cut and paste images to the directory it acts on but when I FTP 
my images to this directory it fails giving me a 426 Error creating 
file.  My thinking is that the workflow may trying to use the image 
before its data has arrived. I can FTP into the directory normally if 
I temporarily change my workflow to act on a different directory - so 
this verifies that the problem is between my workflow and FTP. Can 
someone suggest a workaround to ensure the image is completely 
available before the workflow tries to use it.  I want to avoid any 
kind of cron process in a big way as well. Many thanks,


Regards,
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 )


[Zope] Startup hook

2005-08-17 Thread Gabriel Genellina

Hello

I need to execute something each time Zope starts, is there any place where 
i could put such things? (apart from modifying Zope.Startup.__init__.py)



Gabriel Genellina
Softlab SRL 


___
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] Startup hook

2005-08-17 Thread Lennart Regebro
On 8/17/05, Gabriel Genellina [EMAIL PROTECTED] wrote:
 Hello
 
 I need to execute something each time Zope starts, 

Really? Could you explain what and why?

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.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] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Chris McDonough
Zope excels at providing web services via XML-RPC.  Basically:

- You need to do exactly nothing to make a Zope application
  accessible via XML-RPC.

- When Zope isn't responsible for rendering HTML, it can be
  quite fast.

- Zope is capable of interfacing transactionally with many
  data stores.

- C

On Wed, 2005-08-17 at 12:59 +0100, Pascal Peregrina wrote:
 Hi,
  
 I know that this is an unusual request, but if some of you have some time to
 help me on this it would be great !
  
 Basically, I can summarize the question I will have to answer this way :
 why should we use Zope 2 instead of JSP/struts ?
  
 All the business logic of the company is implemented in services that talk
 to backend and can be queried through xmlrpc (so this is fine for Zope
 integration).
  
 So the context is to use Zope or JSP/struts to manage the presentation
 layer.
 
 I am currently planning to talk about built-in ZMI and transaction
 management, TAL, ...
  
 Thanks a lot for your help.
  
 Pascal
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com
 **
 
 ___
 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] Startup hook

2005-08-17 Thread Pascal Peregrina
Well, creating a subfolder in the Products folder and putting an __init__.py
there that does what you want should work.

Pascal

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Gabriel Genellina
Sent: 17 August 2005 15:35
To: zope@zope.org
Subject: [Zope] Startup hook

Hello

I need to execute something each time Zope starts, is there any place where
i could put such things? (apart from modifying Zope.Startup.__init__.py)


Gabriel Genellina
Softlab SRL 

___
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 email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Pascal Peregrina
Hi Chris,

Ooops... Reading your reply shows me that I was unclear ;)

Zope will be the CMS system of the architecture (so it will render HTML).

I only meant that it would get dynamic data using XML-RPC queries, but I
already have an efficient product for this, so it's not an issue.

So what they want is a Web Management Framework and CMS system.
And they wonder if Zope is better than a JSP/Struts/Velocity solution.

Don't get me wrong, I have been using Zope for almost 2 years now, I love
it.
The problem is that I don't do any Java development since then so I miss
knowledge about Java evolutions in terms of Web Management Framework and CMS
systems.

So any links, advice, opinion, experience would be appreciated.

Thanks a lot.

Pascal

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2005 15:47
To: Pascal Peregrina
Cc: zope@zope.org
Subject: Re: [Zope] Help need for a Zope presentation to java lovers...

Zope excels at providing web services via XML-RPC.  Basically:

- You need to do exactly nothing to make a Zope application
  accessible via XML-RPC.

- When Zope isn't responsible for rendering HTML, it can be
  quite fast.

- Zope is capable of interfacing transactionally with many
  data stores.

- C

On Wed, 2005-08-17 at 12:59 +0100, Pascal Peregrina wrote:
 Hi,
  
 I know that this is an unusual request, but if some of you have some 
 time to help me on this it would be great !
  
 Basically, I can summarize the question I will have to answer this way :
 why should we use Zope 2 instead of JSP/struts ?
  
 All the business logic of the company is implemented in services that 
 talk to backend and can be queried through xmlrpc (so this is fine for 
 Zope integration).
  
 So the context is to use Zope or JSP/struts to manage the presentation 
 layer.
 
 I am currently planning to talk about built-in ZMI and transaction 
 management, TAL, ...
  
 Thanks a lot for your help.
  
 Pascal
 
 
 **
 This email and any files transmitted with it are confidential and 
 intended solely for the use of the individual or entity to whom they 
 are addressed. If you have received this email in error please notify 
 the system manager.
 
 This footnote also confirms that this email message has been swept by 
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com
 **
 
 ___
 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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Bernd Dorn

the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-



On 17.08.2005, at 13:03, Garito wrote:


Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with  
2 files:


Zope with these contents:


the 'Zope'  file must be executable in order to work

chmod +x Zope




#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope
   /var/zope/sistes/bin/zopectl start


typo? sistes == sites


   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService $1

and StartupParameters.plist with these content:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyDescription/key
stringZope web application server/string
keyOrderPreference/key
stringNone/string
keyProvides/key
array
stringZope Server/string
/array
keyRequires/key
array
stringWeb Server/string
/array
/dict
/plist

With these 2 files zope doesn't start at boot time. For that  
question I try another StartupParameters.plist:


{
 Description = Zope WebServer;
 Provides= (Zope WebServer);
 Requires= (Web Server);
 OrderPreference = None;
 Messages =
 {
   start = Starting Zope WebServer Service;
   stop  = Stopping Zope WebServer Service;
 };
}

but It doesn't work too

Can anyone help me?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
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: apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Faried Nawaz wrote:

 It seems that if I use mod_deflate to compress zope's responses, I take a
 major hit -- around 1.4 seconds without compression and around 16.4 seconds
 with. I can't figure out what I'm doing wrong here. 
 
 I have zope 2.7.7 running with the fast-cgi ZServer enabled. Urls beginning 
 with http://pkfinance.info/pkf-z1/ go to Zope. Here's what I see:

You seem to be running Apache and Zope on the same host, and trying to
use the same constrained resource (CPU) from each.  You might be able to
improve performance by running Apache on a separate box, where it won't
steal CPU from Zope to do the compression.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDA1NH+gerLs4ltQ4RAlmRAKC3QtsQFjbmGVyAsC4A0j/go/G1GQCfXhG5
KzpIFjJRnIwJJPoL19X0TvI=
=BUsz
-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] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Chris McDonough
On Wed, 2005-08-17 at 16:02 +0100, Pascal Peregrina wrote:
 Hi Chris,
 
 Ooops... Reading your reply shows me that I was unclear ;)
 
 Zope will be the CMS system of the architecture (so it will render HTML).

Ah.  Well, it's not too bad at doing that either. ;-)

 I only meant that it would get dynamic data using XML-RPC queries, but I
 already have an efficient product for this, so it's not an issue.
 
 So what they want is a Web Management Framework and CMS system.
 And they wonder if Zope is better than a JSP/Struts/Velocity solution.

Considering you're likely the one that will be implementing it, I'd say
so as you know Zope very well.  But they're probably thinking
strategically (which IMO is a mistake ;-).

 Don't get me wrong, I have been using Zope for almost 2 years now, I love
 it.
 The problem is that I don't do any Java development since then so I miss
 knowledge about Java evolutions in terms of Web Management Framework and CMS
 systems.

I don't know much about Struts either, sorry.  I have never actually
implemented a CMS using Java so I may be the wrong person to speak up.
I did give a minor look-see to Cocoon lately and was distinctly
unimpressed because it doesn't do some things that you just take for
granted in Zope (declarative security being the big one).

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


[Zope] Moving Document Library Product

2005-08-17 Thread David

Hi

I have problems moving Document Library instances. I get errors. The  
entire ZODB is 300MBs and the volume has more then 3Gigs free space.


The problem occurs when trying to paste [I/O Error: not enough space  
on the device] the library (copy command seems to work) or import  
(export seems to work).


DocumentLibrary version 1.0rc1
Zope 2.4 (I am trying to migrate a site to Zope 2.7)
python 2.1.3 (I'm using python 2.3.5 for Zope 2.7)
Solaris 8

The traceback from an import:

Error Type: ImportError
Error Value: No module named Splitter

Traceback (innermost last):

Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module OFS.ObjectManager, line 543, in manage_importObject
Module OFS.ObjectManager, line 560, in _importObjectFromFile
Module ZODB.ExportImport, line 85, in importFile
Module ZODB.Transaction, line 241, in commit
Module ZODB.Transaction, line 356, in _commit_objects
Module ZODB.Connection, line 344, in commit
Module ZODB.ExportImport, line 153, in _importDuringCommit
ImportError: No module named Splitter

Any help appreciated!

Cheers
DR
___
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] URL0 returns index_html not index.html

2005-08-17 Thread Mark Barratt

Zope 2.7.4 on Debian

DTML method index_html in the root says dtml-var _['index.html']

A link in a page template to

tal:attributes=href string:${context/REQUEST/URL0}/source.html

where the page is addressed by [path]/ and is actually at [path]/index.html

returns [path]/index_html/source.html

I can vaguely see why this is happening. My question: is there a 
straightforward way of making the links (and error reports) return the 
actual page address?


(I think I understand that 'actual' 'page' and 'address' are all 
metaphors which may be leading me into error... )


Thanks for any help/enlightenment.

--
Mark Barratt


___
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: apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Faried Nawaz
I tried messing with it some more, and it seems that the fix was to place

tal:foo define=ret python:
container.REQUEST.RESPONSE.enableHTTPCompression(container.REQUEST)
tal:omit-tag= /

somewhere near the top of my template.   I didn't realize I needed
compression enabled in zope; I thought apache's mod_deflate would be
sufficient.

Someone should add this to the docs or wiki or someplace.


Faried.
___
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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Bernd Dorn escribió:


the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-


Sorry I put these but I don't tell you




On 17.08.2005, at 13:03, Garito wrote:


Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with  2 
files:


Zope with these contents:



the 'Zope'  file must be executable in order to work

chmod +x Zope


Perfect, perhaps this is the problem






#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope
   /var/zope/sistes/bin/zopectl start



typo? sistes == sites


no, hehe, my company's name (sistes)




   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService $1

and StartupParameters.plist with these content:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyDescription/key
stringZope web application server/string
keyOrderPreference/key
stringNone/string
keyProvides/key
array
stringZope Server/string
/array
keyRequires/key
array
stringWeb Server/string
/array
/dict
/plist

With these 2 files zope doesn't start at boot time. For that  
question I try another StartupParameters.plist:


{
 Description = Zope WebServer;
 Provides= (Zope WebServer);
 Requires= (Web Server);
 OrderPreference = None;
 Messages =
 {
   start = Starting Zope WebServer Service;
   stop  = Stopping Zope WebServer Service;
 };
}

but It doesn't work too

Can anyone help me?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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


Thank you Bernd
If these doesn't work I tell you



--
Mis Cosas
http://blogs.sistes.net/Garito/


___
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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Garito

Bernd Dorn escribió:


the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-



On 17.08.2005, at 13:03, Garito wrote:


Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all  
goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope with  2 
files:


Zope with these contents:



the 'Zope'  file must be executable in order to work

chmod +x Zope




#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope
   /var/zope/sistes/bin/zopectl start



typo? sistes == sites


   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService $1

and StartupParameters.plist with these content:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyDescription/key
stringZope web application server/string
keyOrderPreference/key
stringNone/string
keyProvides/key
array
stringZope Server/string
/array
keyRequires/key
array
stringWeb Server/string
/array
/dict
/plist

With these 2 files zope doesn't start at boot time. For that  
question I try another StartupParameters.plist:


{
 Description = Zope WebServer;
 Provides= (Zope WebServer);
 Requires= (Web Server);
 OrderPreference = None;
 Messages =
 {
   start = Starting Zope WebServer Service;
   stop  = Stopping Zope WebServer Service;
 };
}

but It doesn't work too

Can anyone help me?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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


Hi again!
Sorry but Zope is executable, perhaps another thing?
Any idea?

Thanks

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
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] Moving Document Library Product

2005-08-17 Thread Andreas Jung



--On 17. August 2005 17:06:36 +0100 David [EMAIL PROTECTED] wrote:


Error Type: ImportError
Error Value: No module named Splitter

Traceback (innermost last):

Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module OFS.ObjectManager, line 543, in manage_importObject
Module OFS.ObjectManager, line 560, in _importObjectFromFile
Module ZODB.ExportImport, line 85, in importFile
Module ZODB.Transaction, line 241, in commit
Module ZODB.Transaction, line 356, in _commit_objects
Module ZODB.Connection, line 344, in commit
Module ZODB.ExportImport, line 153, in _importDuringCommit
ImportError: No module named Splitter



Could it be that it tries to import something from the old SearchIndex 
package which had been removed some decades ago from the Zope tree?


-aj

pgp7TIihdy9JG.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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Bernd Dorn


On 17.08.2005, at 20:22, Garito wrote:


Bernd Dorn escribió:



the following 3 problems

this line must be in /etc/hostconfig
ZOPESERVER=-YES-



On 17.08.2005, at 13:03, Garito wrote:



Hi all!

Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and  
all  goes ok


The only question I can't configure is the automatic boot up

I read some how-to's but they don't work

At /System/Library/StartupItems I create a folder called Zope  
with  2 files:


Zope with these contents:




the 'Zope'  file must be executable in order to work

chmod +x Zope





#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope
   /var/zope/sistes/bin/zopectl start




typo? sistes == sites



   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope
   /var/zope/sistes/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope
   /var/zope/sistes/bin/zopectl restart
   fi
}

RunService $1

and StartupParameters.plist with these content:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyDescription/key
stringZope web application server/string
keyOrderPreference/key
stringNone/string
keyProvides/key
array
stringZope Server/string
/array
keyRequires/key
array
stringWeb Server/string
/array
/dict
/plist

With these 2 files zope doesn't start at boot time. For that   
question I try another StartupParameters.plist:


{
 Description = Zope WebServer;
 Provides= (Zope WebServer);
 Requires= (Web Server);
 OrderPreference = None;
 Messages =
 {
   start = Starting Zope WebServer Service;
   stop  = Stopping Zope WebServer Service;
 };
}

but It doesn't work too

Can anyone help me?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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



Hi again!
Sorry but Zope is executable, perhaps another thing?
Any idea?

hm, have you set the effective user in zope.conf? you need this if  
you run zopectl as root


as root try to execute

/System/Library/StartupItems/Zope/Zope

from the commandline

and have a look what if something is looged into your event.log

without any messages i have no clue






Thanks

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
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] Zope 2.8.1 on Mac OS X tiger Server

2005-08-17 Thread Michael Dunstan

On 2005-08-18, at 06:35 GMT+12:00, Bernd Dorn wrote:

On 17.08.2005, at 20:22, Garito wrote:

Hi again!
Sorry but Zope is executable, perhaps another thing?
Any idea?


hm, have you set the effective user in zope.conf? you need this if  
you run zopectl as root


as root try to execute

/System/Library/StartupItems/Zope/Zope

from the commandline

and have a look what if something is looged into your event.log

without any messages i have no clue



Also worth having a look through the system log using say Console.app.

Cheers,
Michael

___
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] Workflow question

2005-08-17 Thread Dieter Maurer
David Pratt wrote at 2005-8-17 00:13 -0300:
 ...
but when I FTP 
my images to this directory it fails giving me a 426 Error creating 
file.

Look at your error_log object to find out the real reason
(and get the traceback).


-- 
Dieter
___
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] Startup hook

2005-08-17 Thread Dieter Maurer
Gabriel Genellina wrote at 2005-8-17 11:34 -0300:
I need to execute something each time Zope starts, is there any place where 
i could put such things? (apart from modifying Zope.Startup.__init__.py)

An incredibly long time ago, there was a (third party) product
that did this. I forgot its name...

-- 
Dieter
___
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] ZEO troubles on RedHat EL4 Linux

2005-08-17 Thread Dieter Maurer
Tim Peters wrote at 2005-8-16 12:35 -0400:
 ...
For example, on a slow or
overburdened (with other simultaneous work) machine, some ZEO tests
can fail due to not getting enough cycles soon enough.

My experience has been that ZEO tests fail with preference
on especially fast machines.

-- 
Dieter
___
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] ZEO troubles on RedHat EL4 Linux

2005-08-17 Thread Dieter Maurer
Andreas Krasa // WUW wrote at 2005-8-16 18:37 +0200:
 ...
==
ERROR: checkMultipleAddresses
(ZEO.tests.testConnection.MappingStorageConnectionTests)
--
Traceback (most recent call last):
  File
/usr/local/src/__zope__/Zope-2.7.7-final/lib/python/ZEO/tests/ConnectionTests.py,
line 121, in tearDown
os.waitpid(pid, 0)
OSError: [Errno 10] No child processes

I have seen similar errors happening non deterministically
in the presence of a SIGCHLD handler set to SIG_IGN.
Such a handler causes the operating system to reap away
so called zombie processes and if the zombie no longer exists,
waitpid will fail.


Some *nix variants automatically pass the SIG_IGN down to child processes.
Our Debian and SuSE Linux versions do.
I had to change Zope.Startup.run not to use SIG_IGN as
SIGCHLD handler in order to avoid such problems.

In case, you run your tests with zopectl test, you may
see this problem...

-- 
Dieter
___
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] apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Dieter Maurer
Faried Nawaz wrote at 2005-8-17 12:21 +0500:
It seems that if I use mod_deflate to compress zope's responses, I take a
major hit -- around 1.4 seconds without compression and around 16.4 seconds
with. I can't figure out what I'm doing wrong here. 

Looks as if you should not use mod_deflate.

Zope can perform gzip compression by itself.

-- 
Dieter
___
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] http post from java applet

2005-08-17 Thread Dieter Maurer
Jeremiah White wrote at 2005-8-16 20:37 -0400:
I am looking at a product from radinks.com that is an applet that allows you
to drag and drop files into the browser window and then uses HTTP post to
upload.

 

In order to upload files, though, you must be logged into my site.  Even
after you have logged in, the applet doesn't seem to have the authentication
that the window in which it is embedded has.

 

How can I make the applet (or the script it calls) have the same privileges
as the browser window it is embedded in?

You are aware that this is not a Zope questions?


I have no answer for you, just a few hints.


You must understand how your site performs authentication.
Zope usually supports two authentication kinds:

  *  Basic HTTP authentication

  *  Cookie authentication

In the first case, the HTTP client (your browser or your applet)
is responsible to add an Authorization header to
the request with the login information.

In the second case, the HTTP client (again your browser or your applet)
must pass on the authentication cookie (almost surely,
Zope will be ready to accept it also as a request parameter and not
only as a cookie).


In both cases, your applet must ask the browser for either
the login information (HTTP Basic authentication) or the
cookies (cookie authetication) and pass this information
on in the generated POST request.

-- 
Dieter
___
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] Non-responsive folders

2005-08-17 Thread Dieter Maurer
Garth B. wrote at 2005-8-16 19:21 -0400:
 ...
When I hit an offending
folder, I simply get no response and the browser just waits and waits.

Visit Control_Panel -- Debug Information and check whether
your request indeed does not finish.
You see the active requests at the bottom of this page.

If this page shows you, that the request was finished by Zope,
then you hit a wide spread browser bug:

  In some cases, Zope returns an 204 (no content) response.
  For unknown reasons (and against the HTTP spec),
  most browsers treat this as continue to wait.

If the request is not finished, you can use
Forent's DeadlockDebugger to find out where your
request is spinning.

-- 
Dieter
___
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] Zope and double-byte locales

2005-08-17 Thread Pascal Peregrina

Hi,

I would like to know if Zope supports locales like Japanese for example ?

Does anyone have a link to a Japanese website powered by Zope ?

Thanks.

Pascal


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

___
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] Startup hook

2005-08-17 Thread Tino Wildenhain
Am Mittwoch, den 17.08.2005, 22:09 +0200 schrieb Dieter Maurer:
 Gabriel Genellina wrote at 2005-8-17 11:34 -0300:
 I need to execute something each time Zope starts, is there any place where 
 i could put such things? (apart from modifying Zope.Startup.__init__.py)
 
 An incredibly long time ago, there was a (third party) product
 that did this. I forgot its name...
 

cd Products
mkdir FancyThirtPartyStartupDieterForgotTheName
cd Fancy*
echo import mymoduleineedtostart __init__.py
echo mymoduleineedtostart.run() __init__.py

maybe? ;)



___
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] Startup hook

2005-08-17 Thread Andrew Langmead


On Aug 17, 2005, at 4:40 PM, Tino Wildenhain wrote:


cd Products
mkdir FancyThirtPartyStartupDieterForgotTheName
cd Fancy*
echo import mymoduleineedtostart __init__.py
echo mymoduleineedtostart.run() __init__.py

maybe? ;)



A neat variation of this would be something derived from  
OFS.Folder.Folder that would iterate over each of its contained  
objects and execute them. You could then drop in whatever sort of  
python scripts, external methods, ZSQL methods, custom products,  or  
whatever you wanted to have done at startup.


___
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] Workflow question

2005-08-17 Thread David Pratt
Hi Dieter. Many thanks for your reply. The place in my workflow that it 
failed was opening the image.


IOError: cannot identify image file

for image_data in image_data_list:

# Get original image data into string object
original_file = StringIO(str(image_obj.data))
image_size_px = image_data['size']

# Create an image instance
error here --   image = PIL.Image.open(original_file)

This had me puzzled since my workflow works in all other cases in the 
portal including cutting an image from one folder and pasting into the 
folder the workflow acts on (just not FTP case). So I wrote a very 
simple workflow script that will only cut and paste an image back in 
same folder to see what would happen:


# Get the object and its id
image_obj = state_change.object
id = image_obj.getId()

# This is the folder we are starting from
upload_dir = image_obj.aq_parent

# Do cut and paste
objs = upload_dir.manage_cutObjects([id])
upload_dir.manage_pasteObjects(objs)

return

I discovered that it does not appear possible to have a workflow act on 
content immediately after being FTP'd to a site without generating the 
'FTP 426 Error creating file' error.  If I FTP an image to the folder 
as Manager with copy or move permission, it will trigger 426 Error 
creating file and the following traceback.  The workflow will work for 
regular operations within the portal, just not FTP.


*  Module OFS.CopySupport, line 92, in manage_cutObjects

Copy Error: HTML HEAD TITLENot Supported/TITLE /HEAD BODY 
BGCOLOR=#FF FORM ACTION=manage_main METHOD=GET  TABLE 
BORDER=0 WIDTH=100% CELLPADDING=10 TR TD VALIGN=TOP BR 
CENTERBFONT SIZE=+6 COLOR=#77003B!/FONT/B/CENTER /TD 
TD VALIGN=TOP BRBR CENTER The action against the 
emA084.JPG/em object could not be carried out. One of the following 
constraints caused the problem: brbrThe object does not support 
this operation.brbr-- OR --brbrThe currently logged-in user 
does not have the bCopy or Move/b permission respective to the 
object. /CENTER /TD /TR TR TD VALIGN=TOP /TD TD 
VALIGN=TOP CENTER INPUT TYPE=SUBMIT VALUE= Ok  /CENTER 
/TD /TR /TABLE /FORM /BODY/HTML


The body of the image appears in my traceback as well

My folders work fine with FTP without the workflow - no errors.  Only 
generates errors when workflow is attached to type it acts on and then 
426 error appears.


Regards,
David



On Wednesday, August 17, 2005, at 05:07 PM, Dieter Maurer wrote:


David Pratt wrote at 2005-8-17 00:13 -0300:

...
but when I FTP
my images to this directory it fails giving me a 426 Error creating
file.


Look at your error_log object to find out the real reason
(and get the traceback).


--
Dieter


___
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: Zope and double-byte locales

2005-08-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pascal Peregrina wrote:

 I would like to know if Zope supports locales like Japanese for example ?
 
 Does anyone have a link to a Japanese website powered by Zope ?

http://zope.jp/
http://www.zope.co.jp/

That last link is for Zope Japan KK, a company specializing in
localizing Zope applications for Japanese and other Big5 markets.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDA7JT+gerLs4ltQ4RAhz5AJ9HH8fASMMDmrPJYsj8KYBobPIjmQCgjzNx
Wwb4phfZ0QHzuNFDUYFvyB8=
=r9zS
-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 )