[Zope-dev] Zope tests: 8 OK

2006-01-25 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Tue Jan 24 12:01:01 2006 UTC to Wed Jan 25 12:01:01 2006 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Tue Jan 24 21:03:08 EST

Re: [Zope] Zope vs Plone: performance issues!

2006-01-25 Thread Dario Lopez-Kästen
Hugo Ramos wrote: Well... They were already using Zope's cache and Squid to proxy some static HTML I guess the problem is Plone itself... Skins etc... eh, sorry for probably stating the obvious. you menationed in an earlier mail that you have good hardware. If this hardware is multi-cpu then

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread Tino Wildenhain
Jeff Donsbach schrieb: On 1/24/06, michael nt milne [EMAIL PROTECTED] wrote: Ok, thanks. The annoying thing is that I am renting a virtual dedicated server which allows multiple domain names obviously but not multiple IP addresses. Or it probably costs more for that. Do you reckon SSL will

Re: [Zope] TinyMCE

2006-01-25 Thread Chris Withers
Garito wrote: The default behaviour is to edit a page with the editor but I need to use kupu on a form, perhaps with more than one editor per form I think I can use kupu data-centered instead of page-centered isn't it? Try looking at how kupu is used in Plohn, where there can be more than

[Zope] Squid ESI

2006-01-25 Thread Chris Withers
Paul Winkler wrote: (and final page composition) downstream. This generally means either: - Squid and ESI Has anyone actually implemented this? I see it thrown out as a suggestion quite often, but when I tried the how-to on longsleep.org yesterday I found that the latest Squid 3.0

[Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Alexander Limi
On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen [EMAIL PROTECTED] wrote: Start by checking the ZODB cache numbers in the zope-conf file (too start simple). IIRC, the default is 5000 objects. Increase that to, say 50.000 or so (you mention that you have a busy site). Sorry, but

Re: [Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 10:42, Alexander Limi wrote: On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen [EMAIL PROTECTED] wrote: Start by checking the ZODB cache numbers in the zope-conf file (too start simple). IIRC, the default is 5000 objects. Increase that to, say 50.000 or so (you

[Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Dario Lopez-Kästen
Subject: Re: Zope vs Plone: performance issues! Alexander Limi wrote: On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen [EMAIL PROTECTED] wrote: Start by checking the ZODB cache numbers in the zope-conf file (too start simple). IIRC, the default is 5000 objects. Increase that to,

Re: [Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 11:36, Dario Lopez-Kästen wrote: Start by checking the ZODB cache numbers in the zope-conf file (too start simple). IIRC, the default is 5000 objects. Increase that to, say 50.000 or so (you mention that you have a busy site). Sorry, but this is not good advice. 5000

[Zope] unpickle error on Data.fs pack

2006-01-25 Thread Gerhard Schmidt
Hi, since three days we have problems when packing the Data.fs. 2006-01-25T03:40:42 ERROR(200) zrpc:7266 Error raised in delayed method Traceback (most recent call last): File /usr/local/www/Zope/lib/python/ZEO/StorageServer.py, line 991, in run result = self._method(*self._args) File

Re: [Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Jonathan
On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen [EMAIL PROTECTED] wrote: Start by checking the ZODB cache numbers in the zope-conf file (too start simple). IIRC, the default is 5000 objects. Increase that to, say 50.000 or so (you mention that you have a busy site). Sorry, but this

[Zope] add folder from the filesystem

2006-01-25 Thread George
Is there a way to add a folder with its contents from the filesystem into Zope using an external method?thx in [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] add folder from the filesystem

2006-01-25 Thread Peter Bengtsson
On 1/25/06, George [EMAIL PROTECTED] wrote: Is there a way to add a folder with its contents from the filesystem into Zope using an external method? What do you mean? Do you have a folder in /home/someone/stuff filled with files that you want to upload? If you download the CVS version of the

Re: [Zope] add folder from the filesystem

2006-01-25 Thread Jonathan
Sure... you need to have your external method access the file system 'folder/directory' and then read each file in the folder to get the contents of the files. Some zope methods that may be of use (check the zope book): To create a folder within the zodb: manage_addFolder To add objects

Re: [Zope] add folder from the filesystem

2006-01-25 Thread Igor Stroh
George wrote: Is there a way to add a folder with its contents from the filesystem into Zope using an external method? There's a script in zope's bin directory called load_site.py, it does exactly what you're looking for: $ cd /usr/lib/zope2.8/bin $ python -c 'import load_site;print

Re: [Zope] unpickle error on Data.fs pack

2006-01-25 Thread Gerhard Schmidt
On Wed, Jan 25, 2006 at 12:52:10PM +0100, Gerhard Schmidt wrote: I've tried to recover the data.fs with fsrecover but it returns without error and the error remains. fsrefs.py terminates with an error. Any idea how to fix the Data.fs. fsrefs.py returns the following. Traceback (most recent

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread michael nt milne
David Pratt -Hi Michael. First you need a way to get to the root of your site two different ways. First is using the domain you have your ssl on and the other for your other domain name(s) Thanks for that David. I will try out what you say.Hopefully it will work because not being able to do

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread Chris Withers
Jens Vagelpohl wrote: On 24 Jan 2006, at 18:10, David Pratt wrote: Have you tested this? The authentication machinery uses cookies, and the browser will not send cookies that were set by the secure login host to the unsecured sites. ...only if the secure bit of the cookie is set ;-)

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 14:26, Chris Withers wrote: Jens Vagelpohl wrote: On 24 Jan 2006, at 18:10, David Pratt wrote: Have you tested this? The authentication machinery uses cookies, and the browser will not send cookies that were set by the secure login host to the unsecured sites.

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread Martijn Pieters
On 1/24/06, michael nt milne [EMAIL PROTECTED] wrote: Ok, thanks. The annoying thing is that I am renting a virtual dedicated server which allows multiple domain names obviously but not multiple IP addresses. Or it probably costs more for that. Do you reckon SSL will ever be available for

Re: [Zope] Squid ESI

2006-01-25 Thread Martijn Pieters
On 1/25/06, Chris Withers [EMAIL PROTECTED] wrote: Has anyone actually implemented this? I see it thrown out as a suggestion quite often, but when I tried the how-to on longsleep.org yesterday I found that the latest Squid 3.0 pre-release won't even compile with ESI enabled :-( Squid 3.0 is a

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread michael nt milne
Hi The virtual hosts are all served from the same server but they don't actually share the same domain. They have different domain names but are served from the same IP. I'm going to try David Pratt's method above to set up a mysecure.domain.com and then use Apache to re-write in and out of the

Re: [Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Paul Winkler
On Wed, Jan 25, 2006 at 11:47:21AM +, Jens Vagelpohl wrote: You should also look at increasing the ZEO cache size if you use ZEO. This can be done in zope.conf as well. The ZEO cache is a disk cache. +9 on that. This is the cache-size setting *within* the zeoclient section. Fetching an

Re: [Zope] SSL over Multiple Zope/Plone sites?

2006-01-25 Thread Chris Withers
Jens Vagelpohl wrote: ...only if the secure bit of the cookie is set ;-) This is about different hostnames, remember? Well, in that case https has nothing to do with it ;-) cookies for one domain never get sent to another, unless you're using IE or something ;-) Chris -- Simplistix -

[Zope] zodb queries, importing and exporting

2006-01-25 Thread Cliff Williams
LEAD UP: I've got a site that I need to develop and it's a natural and obvious decision that I use zope and plone as they are what I'm familiar with and what I prefer to other CMS/Portal-wares out there. The site will have several counter parts around the globe being administered by various

Re: [Zope] zodb queries, importing and exporting

2006-01-25 Thread Jonathan
Not a zope question, but... why don't you create a mutually agreed upon XML DTD (document type definition) that represents the content of a database record. Then each party can implement the XML data extraction/upload to their own db technology as they please. Each db operator will

[Zope] Zope/Plone logon security strategy etc

2006-01-25 Thread michael nt milne
Just a quick question about Zope/Plone logins and security etc. When I go to www.domain.com:8080/manage I get a login box which seems to function in exactly the same way as the www.domain.com:8080/login_form page. My question is, what was the rational for implementing this logon strategy in Zope

Re: [Zope] Zope/Plone logon security strategy etc

2006-01-25 Thread Tino Wildenhain
michael nt milne schrieb: Just a quick question about Zope/Plone logins and security etc. When I go to www.domain.com:8080/manage I get a login box which seems to function in exactly the same way as the www.domain.com:8080/login_form page. My question is, what was the rational for

[Zope] XML-RPC encrypted?

2006-01-25 Thread José Carlos Senciales
Hello, I need to use XML-RPC to call some functions of a product in zope, but all my xml-rpc conections has user:[EMAIL PROTECTED]:port\folder\method I´m wondering if it´s possible to do a call with xml-rpc with all data encrypted... with ssl...? Thanks. Jose Carlos

Re: [Zope] XML-RPC encrypted?

2006-01-25 Thread Peter Bengtsson
Have you tried https://user:[EMAIL PROTECTED]:port\folder\method.. ? On 1/25/06, José Carlos Senciales [EMAIL PROTECTED] wrote: Hello, I need to use XML-RPC to call some functions of a product in zope, but all my xml-rpc conections has user:[EMAIL PROTECTED]:port\folder\method I´m

Re: [Zope] XML-RPC encrypted?

2006-01-25 Thread Tino Wildenhain
Peter Bengtsson schrieb: Have you tried https://user:[EMAIL PROTECTED]:port\folder\method.. ? On 1/25/06, José Carlos Senciales [EMAIL PROTECTED] wrote: Hello, I need to use XML-RPC to call some functions of a product in zope, but all my xml-rpc conections has user:[EMAIL

Re: [Zope] Zope/Plone logon security strategy etc

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 17:17, michael nt milne wrote: Just a quick question about Zope/Plone logins and security etc. When I go to www.domain.com:8080/manage I get a login box which seems to function in exactly the same way as the www.domain.com:8080/login_form page. My question is, what was the

Re: [Zope] zodb queries, importing and exporting

2006-01-25 Thread J Cameron Cooper
Jonathan wrote: Not a zope question, but... why don't you create a mutually agreed upon XML DTD (document type definition) that represents the content of a database record. Then each party can implement the XML data extraction/upload to their own db technology as they please. Each db

Re: [Zope] Zope/Plone logon security strategy etc

2006-01-25 Thread michael nt milne
Hi Yeah I know the security aspects are good once you are in, however when you login it's possible for someone to grab your logon name and pass as it goes over the internet, as there's no encryption at all. Then obviously login themselves and compromise your sites. Just slightly concerned about

Re: [Zope] Zope/Plone logon security strategy etc

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 18:55, michael nt milne wrote: Hi Yeah I know the security aspects are good once you are in, however when you login it's possible for someone to grab your logon name and pass as it goes over the internet, as there's no encryption at all. Then obviously login themselves and

[Zope] Re: Zope/Plone logon security strategy etc

2006-01-25 Thread michael nt milne
Cookie authentication can't be secure. Also I have my doubts about http authentication. I'll check though. Basicallx you want really good encryption on any logon and password etc. On 1/25/06, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 25 Jan 2006, at 18:55, michael nt milne wrote: Hi

[Zope] Structured Text Question

2006-01-25 Thread Asad Habib
Is there any way to have multiple lines of empty space between two sections of text in a Structured Text document? I looked on Google but did not find any answers to this question. However, I did notice that others had asked the question as well. Is this a shortcoming of Structured Text? Any

Re: [Zope] Strange behaviour - 3 links which should be the same don't

2006-01-25 Thread Dieter Maurer
Sasha Vincic wrote at 2006-1-24 23:22 +0100: On 1/24/06, Dieter Maurer [EMAIL PROTECTED] wrote: The three links may be different with respect to the effective base URL. The first two have the same base URL which is the same as second link. The third link doesn't have any base, which is

Re: [Zope] unpickle error on Data.fs pack

2006-01-25 Thread Dieter Maurer
Gerhard Schmidt wrote at 2006-1-25 12:52 +0100: since three days we have problems when packing the Data.fs. 2006-01-25T03:40:42 ERROR(200) zrpc:7266 Error raised in delayed method Traceback (most recent call last): ... File /usr/local/www/Zope/lib/python/ZODB/referencesf.py, line 38, in

Re: [Zope] Indexing files

2006-01-25 Thread Dieter Maurer
Sune Christiansen wrote at 2006-1-24 18:56 +0100: when you say external PDF converter, do you mean the pdf converter I created the pdf file with? I have tried to index a microsoft word file also, but the result is the same: an empty index. You need converters from the media format (i.e. PDF,

RE: [Zope] Structured Text Question

2006-01-25 Thread Asad Habib
Well, this decision was not made by me and I cannot override it. Given that I have to use Structured Text, is there a solution to this problem? Thanks. - Asad On Wed, 25 Jan 2006, Jaroslav Lukesh wrote: Is there any way to have multiple lines of empty space between two sections of text in

[Zope] dealing with scripts that take too long

2006-01-25 Thread martin f krafft
Hi there, we're experiencing problems with certain maintenance scripts, which just take too long to complete, so that the browser resets the connection and Zope aborts the transaction. Short of splitting the scripts up into smaller pieces and running them individually (which would be a pain),

[Zope] Can one nest macros with slots?

2006-01-25 Thread Doyon, Jean-Francois
I can't seem to do this: use-macro fill-slot define-macro ... Some html ... define-slot/define-slot ... Some html ... /define-macro /fill-slot /use-macro Allowing me to nest multiple reusable templates? I have objects with common interfaces which could easily share

Re: [Zope] dealing with scripts that take too long

2006-01-25 Thread Jonathan
snip we're experiencing problems with certain maintenance scripts, which just take too long to complete, so that the browser resets the connection and Zope aborts the transaction. Short of splitting the scripts up into smaller pieces and running them individually (which would be a pain), what

[Zope] Re: dealing with scripts that take too long

2006-01-25 Thread martin f krafft
also sprach Jonathan [EMAIL PROTECTED] [2006.01.25.2330 +0100]: We are running a *nix environment, and use cron with script files that use either perl LWP or CURL to make http requests that invoke the zope methods/scripts. LWP, CURL (and others) give you the ability to control the timeout

Re: [Zope] Re: Zope/Plone logon security strategy etc

2006-01-25 Thread Tino Wildenhain
michael nt milne schrieb: Cookie authentication can't be secure. Also I have my doubts about http authentication. I'll check though. Basicallx you want really good encryption on any logon and password etc. You want ssl for all. There is no security if you have logon encrypted in a stateless

Re: [Zope] dealing with scripts that take too long

2006-01-25 Thread Andrew Langmead
On Jan 25, 2006, at 5:17 PM, martin f krafft wrote: we're experiencing problems with certain maintenance scripts, which just take too long to complete, so that the browser resets the connection and Zope aborts the transaction. If these are maintenance scripts that are kicked off manually by

Re: [Zope] dealing with scripts that take too long

2006-01-25 Thread Tino Wildenhain
martin f krafft schrieb: Hi there, ... I was thinking we could send data back to the browser, but I cannot figure out a way to do this from a TTW Python script. How can I send data immediately, not only when I 'return printed' after all the processing is done. NPH or so, I believe this was

RE: [Zope] Structured Text Question

2006-01-25 Thread Jaroslav Lukesh
Well, this decision was not made by me and I cannot override it. Given that I have to use Structured Text, is there a solution to this problem? Thanks. Yes. At attachment in my prev. mail you could find (not only by me) modified version of STX from Zope 2.5.1 (partially from 2.6 too). Here you

Re: [Zope] Structured Text Question

2006-01-25 Thread Jens Vagelpohl
fix broken top-quoting On 25 Jan 2006, at 22:07, Asad Habib wrote: On Wed, 25 Jan 2006, Jaroslav Lukesh wrote: Is there any way to have multiple lines of empty space between two sections of text in a Structured Text document? I looked on Google but did not find any answers to this

[Zope] Re: dealing with scripts that take too long

2006-01-25 Thread martin f krafft
also sprach Tino Wildenhain [EMAIL PROTECTED] [2006.01.25.2345 +0100]: Actually it does not have anything to do with NPH, but thats another story. You can just write via context.REQUEST.RESPONSE.write(somestring) This is exactly what I was looking for, I just couldn't remember the process. I

Re: [Zope] dealing with scripts that take too long

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 22:17, martin f krafft wrote: we're experiencing problems with certain maintenance scripts, which just take too long to complete, so that the browser resets the connection and Zope aborts the transaction. I am assuming you use broken browsers that will time out, like IE?

[Zope] Re: dealing with scripts that take too long

2006-01-25 Thread martin f krafft
also sprach Jens Vagelpohl [EMAIL PROTECTED] [2006.01.25.2352 +0100]: I am assuming you use broken browsers that will time out, like IE? Use a more suitable browser like Firefox, those don't time out by default. As far as I can remember, Firefox was being used, and it didn't time out per

Re: [Zope] Re: dealing with scripts that take too long

2006-01-25 Thread Jens Vagelpohl
On 25 Jan 2006, at 22:56, martin f krafft wrote: also sprach Jens Vagelpohl [EMAIL PROTECTED] [2006.01.25.2352 +0100]: I am assuming you use broken browsers that will time out, like IE? Use a more suitable browser like Firefox, those don't time out by default. As far as I can remember,

[Zope] Re: Zope/Plone logon security strategy etc

2006-01-25 Thread michael nt milne
Yes I agree, having checked on basic http authentication I need SSL. Basic http and cookie auth is insecure. I just feel that zope should have this facility even with a self signed certificate, so that you could do it without Apache and had more options. The option to even just have it on for site

[Zope] Re: Re: dealing with scripts that take too long

2006-01-25 Thread martin f krafft
also sprach Jens Vagelpohl [EMAIL PROTECTED] [2006.01.26.0002 +0100]: If the script dies by itself for some reason then invoking it in other ways might not help. You should concentrate on getting error tracebacks or other evidence that shows *why* the script dies, and go from there. I

Re: [Zope] TinyMCE

2006-01-25 Thread Garito
Chris Withers escribió: Garito wrote: The default behaviour is to edit a page with the editor but I need to use kupu on a form, perhaps with more than one editor per form I think I can use kupu data-centered instead of page-centered isn't it? Try looking at how kupu is used in Plohn, where

Re: [Zope] unpickle error on Data.fs pack

2006-01-25 Thread Tim Peters
[Gerhard Schmidt] since three days we have problems when packing the Data.fs. 2006-01-25T03:40:42 ERROR(200) zrpc:7266 Error raised in delayed method Traceback (most recent call last): File /usr/local/www/Zope/lib/python/ZEO/StorageServer.py, line 991, in run result =

Re: [Zope] Can one nest macros with slots?

2006-01-25 Thread J Cameron Cooper
Doyon, Jean-Francois wrote: I can't seem to do this: use-macro fill-slot define-macro ... Some html ... define-slot/define-slot ... Some html ... /define-macro /fill-slot /use-macro Allowing me to nest multiple reusable templates? I have objects with common

[Fwd: Re: [Zope] Structured Text Question]

2006-01-25 Thread J Cameron Cooper
Asad Habib wrote: Well, this decision was not made by me and I cannot override it. Given that I have to use Structured Text, is there a solution to this problem? You can always write HTML in STX. Just say:: br / Or maybe:: p/p I would suggest, however, not setting a solution in stone

[Zope] Re: Zope/Plone logon security strategy etc

2006-01-25 Thread Tino Wildenhain
michael nt milne schrieb: Yes I agree, having checked on basic http authentication I need SSL. Basic http and cookie auth is insecure. I just feel that zope should have this facility even with a self signed certificate, so that you could do it without Apache and had more options. The option to