Re: [Zope] Zope pretends to receive and send XMLRPC data, but strace sees nothing !

2007-01-23 Thread Pascal Peregrina
In general, retry is called when a ZODB Conflict Error has happened. If I remember well, Zope will silently retry 3 times, and then actually return an error page showing the Conflict Error. Pascal De : yacine chaouche [EMAIL PROTECTED] Date : Tue, 23 Jan 2007 10:49:40 +0100 À : Gabriel Genellina

[Zope] Different field conversion for lines and ulines : why?

2007-01-11 Thread Pascal Peregrina
Hi, I would like to know why lines fields are not converted with the same logic as ulines fields in Zpublisher.Converters. lines uses splitlines() while ulines uses split('\n') This gives different result: ''.splitlines() [] ''.split('\n') [''] u''.splitlines() [] u''.split('\n') [u''] So,

Re: [Zope] Different field conversion for lines and ulines : why?

2007-01-11 Thread Pascal Peregrina
Done: Issue 2263 of Zope Bugs, Features, and Patches Collector [ZC] Thanks. Pascal De : Andreas Jung [EMAIL PROTECTED] Répondre à : Andreas Jung [EMAIL PROTECTED] Date : Thu, 11 Jan 2007 12:15:49 +0100 À : Pascal Peregrina [EMAIL PROTECTED], zope@zope.org Objet : Re: [Zope] Different

[Zope] UTF-8 conversion

2006-10-26 Thread Pascal Peregrina
Title: UTF-8 conversion Hi, We are running zope with ISO-8859-1 as the encoding for HTTP responses. In term of Zope objects, all the properties are lines, string, etc (not ulines, ustring, etc). Now, we have been asked to support Japanese (with UTF-8). So my question is: what should I need

Re: [Zope] Surprising load test results? (more results)

2006-10-10 Thread Pascal Peregrina
 : Lennart Regebro [EMAIL PROTECTED] Date : Mon, 9 Oct 2006 21:46:39 +0200 À : Pascal Peregrina [EMAIL PROTECTED] Cc : zope@zope.org zope@zope.org Objet : Re: [Zope] Surprising load test results? (more results) On 10/9/06, Pascal Peregrina [EMAIL PROTECTED] wrote: Hi all, I have added ab tests

[Zope] Surprising load test results? (more results)

2006-10-09 Thread Pascal Peregrina
Hi all, I have added ab tests at the end of the page. (http://talk.lastminute.com/wiki/index.php/Loadtest) These extra results confirm everything we had found so far, except for 2.10 with use-wsgi on... We could see what others reported: in 2.10, WSGI adds a similar overhead to all type of

Re: [Zope] Surprising load test results?

2006-10-06 Thread Pascal Peregrina
. Pascal De : Lennart Regebro [EMAIL PROTECTED] Date : Fri, 6 Oct 2006 11:21:04 +0200 À : Martijn Faassen [EMAIL PROTECTED] Cc : Federico Schwindt [EMAIL PROTECTED], Chris Withers [EMAIL PROTECTED], Pascal Peregrina [EMAIL PROTECTED], zope@zope.org zope@zope.org Objet : Re: [Zope] Surprising

[Zope] Surprising load test results?

2006-10-05 Thread Pascal Peregrina
Hi, We made some basic load testing against different Zope2 versions and found some unexpected results. Everything is summarized here : http://talk.lastminute.com/wiki/index.php/Loadtest We would appreciate any comment about it, and of course will answer any question you might have about our

Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......

2006-10-05 Thread Pascal Peregrina
By the way, it used to work fine on cygwin (was Zope 2.7 when I last used it on a windows+cygwin box)... ;) My 2 euro cents. Pascal De : Chris Withers [EMAIL PROTECTED] Date : Thu, 05 Oct 2006 09:38:25 +0100 À : [EMAIL PROTECTED] Cc : zope@zope.org Objet : Re: [Zope]

Re: [Zope] external method: importing and updating method

2006-10-05 Thread Pascal Peregrina
Well the complete story was: We also set a crontab to restart the zope server every night, but them I was wondering if it is a good idea. And later on: crontab is really a bad idea. We quitted that. And in that case (using crontab to restart Zope every night), I think it was a bad idea. Of

[Zope] HTTPResponse

2006-09-29 Thread Pascal Peregrina
Hi, I would like to know what is the use of implementing the Zpublisher.Iterators.IStreamIterator on the object returned as the body of a HTTP response. As far as I could read the Zope code (Zserver, etc), this will make the response data to be sent 64k at a time. So will this improve

Re: [Zope] HTTPResponse

2006-09-29 Thread Pascal Peregrina
product was sending the whole HTML code of the page as a string... Pascal De : Dieter Maurer [EMAIL PROTECTED] Date : Fri, 29 Sep 2006 19:29:39 +0200 À : Pascal Peregrina [EMAIL PROTECTED] Cc : zope@zope.org zope@zope.org Objet : Re: [Zope] HTTPResponse Pascal Peregrina wrote at 2006-9-29

Re: [Zope] Dictionary in ZPT

2006-09-28 Thread Pascal Peregrina
100% agree... Just answered the specific question ;) De : Chris Withers [EMAIL PROTECTED] Date : Thu, 28 Sep 2006 09:07:33 +0100 À : Pascal Peregrina [EMAIL PROTECTED] Cc : Alan [EMAIL PROTECTED], zope@zope.org Objet : Re: [Zope] Dictionary in ZPT Pascal Peregrina wrote: Hi, I am

Re: [Zope] Dictionary in ZPT

2006-09-27 Thread Pascal Peregrina
Hi, I am not sure about your use case, but this should work: ... tal:define=global count python: 0; global data python: {} ... tal:define=null python: data.update({'jname':jname}); ... Pascal De : Alan [EMAIL PROTECTED] Date : Tue, 12 Sep 2006 14:16:23 +0100 À : zope@zope.org Objet :

[Zope] Zope 2.10b2 build issue

2006-09-21 Thread Pascal Peregrina
Hi, Just to let you know that if you use a temporary build directory to build Zope 2.10, the setup.py script fails. I know, I am using python 2.5 (making some tests) but this issue is unrelated. Below, build is an empty directory and src is the untared Zope source. STEP 1 cd

Re: [Zope] Zope 2.10b2 build issue

2006-09-21 Thread Pascal Peregrina
 : Pascal Peregrina [EMAIL PROTECTED], zope@zope.org Objet : Re: [Zope] Zope 2.10b2 build issue --On 21. September 2006 11:06:36 +0200 Pascal Peregrina [EMAIL PROTECTED] wrote: Hi, Just to let you know that if you use a temporary build directory to build Zope 2.10, the setup.py script

Re: [Zope] Zope 2.10b2 build issue

2006-09-21 Thread Pascal Peregrina
De : Andreas Jung [EMAIL PROTECTED] Répondre à : Andreas Jung [EMAIL PROTECTED] Date : Thu, 21 Sep 2006 12:02:00 +0200 À : Pascal Peregrina [EMAIL PROTECTED], Andreas Jung [EMAIL PROTECTED], zope@zope.org Objet : Re: [Zope] Zope 2.10b2 build issue --On 21. September 2006 11:58:29 +0200

Re: [Zope] Re: PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3...

2006-09-20 Thread Pascal Peregrina
Ok, thanks. Pascal De : Philipp von Weitershausen [EMAIL PROTECTED] Date : Tue, 19 Sep 2006 13:56:10 +0200 À : zope@zope.org Objet : [Zope] Re: PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3... Pascal Peregrina wrote: I would like to know the right way to manage messages

Re: [Zope] ZEO and Data.fs

2006-09-20 Thread Pascal Peregrina
Title: Re: [Zope] ZEO and Data.fs No, you just need to change zope.conf to move from FileStorage to ClientStorage, and then you can move your Data.fs file to ZEO var directory and start zeo. Pascal De : Sinang, Danny [EMAIL PROTECTED] Date : Mon, 18 Sep 2006 21:38:48 +0800  : zope@zope.org

[Zope] Localizer/TranslationService question

2006-09-14 Thread Pascal Peregrina
Hi, Does anyone know if Localizer requires iTools/iHotFix to work with Zope 2.8 if I only use MessageCatalogs (and not plain files) ? (I'm downloading the Products from here: http://www.ikaaro.org/download/index.html) Until now I was using the 1.0.1 version of Localizer. Thanks. Pascal

Re: [Zope] Localizer/TranslationService question

2006-09-14 Thread Pascal Peregrina
[EMAIL PROTECTED] Date : Thu, 14 Sep 2006 13:00:00 +0200 À : Pascal Peregrina [EMAIL PROTECTED] Cc : zope@zope.org Objet : Re: [Zope] Localizer/TranslationService question IIRC, iHotfix is required by Localizer when you have a version like 1.1 or 1.2 I think itools is also required, regardless

[Zope] PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3...

2006-09-14 Thread Pascal Peregrina
Title: PageTemplate i18n migration from Zope2 to Zope2+Five / Zope3... Hi, I would like to know the right way to manage messages and store them in ZODB with Zope2+Five or Zope3. Currently, in Zope2, I use Localizer MessageCatalog objects. Is there a new way already available through Five?

[Zope] Nice video

2006-08-21 Thread Pascal Peregrina
Hi, I guess most of you might have seen this: http://oodt.jpl.nasa.gov/better-web-app.mov Not sure that Zope3 would get the same grade though (because of xml config files). Pascal ** This email and any files transmitted with

RE: [Zope] AJAX and Zope

2006-05-24 Thread Pascal Peregrina
to Zope within the browser. Does it make more sense now? Pascal -Message d'origine- De : Lennart Regebro [mailto:[EMAIL PROTECTED] Envoyé : mercredi 24 mai 2006 14:56 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] AJAX and Zope On 5/24/06, Pascal Peregrina [EMAIL PROTECTED

RE: [Zope] AJAX and Zope

2006-05-24 Thread Pascal Peregrina
of including the JS library and then make some python code). Pascal -Message d'origine- De : Lennart Regebro [mailto:[EMAIL PROTECTED] Envoyé : mercredi 24 mai 2006 15:27 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] AJAX and Zope On 5/24/06, Pascal Peregrina [EMAIL PROTECTED

RE: [Zope] ZServer threads and pool-size question

2006-01-05 Thread Pascal Peregrina
Thanks, I will try that ;) -Message d'origine- De : Dieter Maurer [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 janvier 2006 19:52 À : Pascal Peregrina Cc : Jens Vagelpohl; zope list user Objet : RE: [Zope] ZServer threads and pool-size question Pascal Peregrina wrote at 2006-1-4 13:34

RE: [Zope] Re: ZServer threads and pool-size question

2006-01-05 Thread Pascal Peregrina
-Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Florent Guillaume Envoyé : mercredi 4 janvier 2006 15:43 À : Jens Vagelpohl Cc : zope@zope.org Objet : [Zope] Re: ZServer threads and pool-size question Jens Vagelpohl wrote: On 4 Jan 2006, at 13:23, Pascal

RE: [Zope] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
Objet : Re: [Zope] ZServer threads and pool-size question On 4 Jan 2006, at 13:34, Pascal Peregrina wrote: I understand. So what is the typical value to use for pool-size given a certain threads number: n+3 ? There is no typical value. Changing the thread number and pool size puts you

RE: [Zope] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
janvier 2006 15:02 À : zope list user Objet : Re: [Zope] ZServer threads and pool-size question On 4 Jan 2006, at 13:53, Pascal Peregrina wrote: Because I use ZEO, I got lots of often modified objects, and on Zope servers I got lots of memory so I can give it a try ;) Where do you see the gain

RE: [Zope] ZServer threads and pool-size question

2006-01-04 Thread Pascal Peregrina
question On 4 Jan 2006, at 14:11, Pascal Peregrina wrote: So, are you telling me that the ideal configuration is using all default values (connection objects cache size, ZEO cache size, threads and connection pool)? The default values for thread number and connection pool covers all

[Zope] Zope 2.8.4+Latest cygwin installation

2005-12-15 Thread Pascal Peregrina
Hi, I would like to know if anyone has been able to compile and run Zope 2.8.4 with Cygwin. I just installed cygwin with latest stable packages. I compiled python 2.4.2 (I know, not the supported version, so I am about to try 2.3.5 now) I had issues with the socket module, and from google I

RE: [Zope] Zope 2.8.4+Latest cygwin installation

2005-12-15 Thread Pascal Peregrina
part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:25 À : zope@zope.org Objet : [Zope] Zope 2.8.4+Latest cygwin installation Hi, I would like to know if anyone has been able to compile and run Zope 2.8.4 with Cygwin. I just installed cygwin with latest stable packages. I compiled

RE: [Zope] Zope 2.8.4+Latest cygwin installation

2005-12-15 Thread Pascal Peregrina
.__new__(klass, *args) return result Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Pascal Peregrina Envoyé : jeudi 15 décembre 2005 12:51 À : zope@zope.org Objet : RE: [Zope] Zope 2.8.4+Latest cygwin installation Ok, just found it has already

RE: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-14 Thread Pascal Peregrina
From the Zope 2.8.2 announcement on this mailing list : Please also keep in mind that Zope 2.8.2 requires Python 2.3.5. Zope 2.8.2 is not certified for any Python 2.4.x versions. So using Python 2.4 is neither recommended nor supported and any related questions or problems are likely to be

RE: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Pascal Peregrina
If what is intended with this code is to monkey patch some class, then I had a similar problem on 2.8.0 and I solved it by using setattr() instead of item assignment (and it works with 2.7.6). Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris

RE: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Pascal Peregrina
That solution was given to me by someone on the zope mailing list by the time Zope 2.8.0 was out :) -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Sent: 29 September 2005 09:26 To: Pascal Peregrina Cc: Luca Olivetti; [EMAIL PROTECTED]; zope@zope.org Subject: Re: [Zope

RE: [Zope] MemoryError that brings my zope to its knees

2005-09-13 Thread Pascal Peregrina
What's the amount of RAM you have ? Have you changed the default pool-size in the zodb section ? Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Calvin Hendryx-Parker Envoyé : mardi 13 septembre 2005 11:44 À : zope@zope.org Objet : [Zope]

[Zope] Zope iso-8859-1 to utf-8

2005-09-13 Thread Pascal Peregrina
Hi, I have been running a Zope installation for 2 years, so there are now lots of objects, properties, etc... I would like to know what are the possible issues I may have to face if I change the default encoding for iso-8859-1 to utf-8 in ZMI. Thanks. Pascal

RE: [Zope] MemoryError that brings my zope to its knees

2005-09-13 Thread Pascal Peregrina
: Calvin Hendryx-Parker [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 septembre 2005 13:51 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] MemoryError that brings my zope to its knees On Sep 13, 2005, at 12:00 PM, Pascal Peregrina wrote: What's the amount of RAM you have ? When we started

[Zope] Monkey patching Z2.log

2005-09-13 Thread Pascal Peregrina
Hi, Can somebody tell me what I should monkey patch if I need to alter Z2.log logging in order to append a particular request environment value ? I triedbut I got lost trying to find PublisherHTTPServer and ZPublisher relationship... Thanks a lot. Pascal

RE: [Zope] Re: Zope iso-8859-1 to utf-8

2005-09-13 Thread Pascal Peregrina
. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Max M Envoyé : mardi 13 septembre 2005 14:51 À : zope@zope.org Objet : [Zope] Re: Zope iso-8859-1 to utf-8 Pascal Peregrina wrote: Hi, I have been running a Zope installation for 2 years, so

Re: [Zope] Re: Zope iso-8859-1 to utf-8

2005-09-13 Thread Pascal Peregrina
) -Original Message- From: Dieter Maurer [EMAIL PROTECTED] To: Pascal Peregrina [EMAIL PROTECTED] CC: 'Max M' [EMAIL PROTECTED]; zope@zope.org zope@zope.org Sent: Tue Sep 13 19:10:08 2005 Subject: RE: [Zope] Re: Zope iso-8859-1 to utf-8 Pascal Peregrina wrote at 2005-9-13 14:21 +0100: I see

[Zope] Zope3 i18n

2005-08-29 Thread Pascal Peregrina
Hi, I am starting to have a look at Zope3 (I am a Zope 2 product developper). In Zope2, I currently use MessageCatalogs/Localizer/TranslationService for i18n. Where can I find documentation about the corresponding functionality in Zope3 (which appears to be i18n enabled) ? I would be

[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

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]

RE: [Zope] Help need for a Zope presentation to java lovers...

2005-08-17 Thread Pascal Peregrina
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

[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

RE: [Zope] Data.fs Windows to Linux?

2005-08-06 Thread Pascal Peregrina
I had a similar issue when playing with Data.fs files, and I found that it was a write permission issue on the file. Don't know if it can help you in that case. Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Schnapp Sent: 06 August 2005

[Zope] Large file support

2005-08-06 Thread Pascal Peregrina
Hi, I would like to know the steps to achieve (compilation flags, etc) in order to enable 2G ZODB file support. I use Zope 2.8.0 and python 2.3.5 on linux 2.4 (about to migrate to linux 2.6) Thanks Pascal ** This email

RE: [Zope] Mount points

2005-08-03 Thread Pascal Peregrina
Ok will do. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dieter Maurer Sent: 03 August 2005 18:36 To: Pascal Peregrina Cc: zope@zope.org Subject: Re: [Zope] Mount points Pascal Peregrina wrote at 2005-8-2 19:39 +0100: Is there a way

[Zope] Python compile question

2005-08-01 Thread Pascal Peregrina
Hi, I know this is more a python question than a Zope one, but this is part of different tests I am doing to try to make Zope faster. The target architecture is several Zope instances on a multi-processor linux server. On a linux system, does anyone know if these python options can help

[Zope] Question about zserver-threads.

2005-07-29 Thread Pascal Peregrina
Hi, Concerning the zserver-threads config param... If I have an http-server, ftp-server and webdqv-source-server and if my global zserver-threads param is set to 10, does it mean : a)The the max number of http-server + ftp-server + webdav-source-server threads will be 10 ? b)The max number of

[Zope] About Zope 2.8.1

2005-07-28 Thread Pascal Peregrina
Hi, I have a doubt... I would like to know if all the fixes included in Zope 2.7.7 (that was out after 2.8.0) will be included in 2.8.1, like for example : * Collector #1781: made create_mount_points ZConfig option actually work (thanks to Dieter Maurer for the patch). * Collector #1797: when a

RE: [Zope] About Zope 2.8.1

2005-07-28 Thread Pascal Peregrina
Ok thanks... Pascal -Message d'origine- De : Andreas Jung [mailto:[EMAIL PROTECTED] Envoyé : jeudi 28 juillet 2005 09:33 À : Pascal Peregrina; 'zope@zope.org' Objet : Re: [Zope] About Zope 2.8.1 --On 28. Juli 2005 08:29:11 +0100 Pascal Peregrina [EMAIL PROTECTED] wrote: Hi, I

[Zope] 2 Zope instances on a 2 CPU linux server

2005-07-28 Thread Pascal Peregrina
Hi, I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ? As far a I know, python can not fully take advantage of 2 CPU cause python threads are not OS

[Zope] Exception in Zope 2.8.0

2005-07-25 Thread Pascal Peregrina
Hi, Just got this exception at startup : File /lmn/build/Frontier/20050618/opt/Zope-2.8.0-final/lib/python/ZODB/FileStora ge/FileStorage.py, line 1733, in read_index if prev: NameError: global name 'prev' is not defined My Data.fs may be corrupted, but this is not the point : looking at

[Zope] RE: Exception in Zope 2.8.0

2005-07-25 Thread Pascal Peregrina
Done (issue #1849) -Original Message- From: Peter Bengtsson [mailto:[EMAIL PROTECTED] Sent: 25 July 2005 13:51 To: Pascal Peregrina Cc: zope@zope.org Subject: Re: Exception in Zope 2.8.0 Then file a bug report on the collector. If you can, include steps on how to reproduce

RE: [Zope] About Zope 2.7.7

2005-07-06 Thread Pascal Peregrina
Ok, thanks a lot ! Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas Jung Sent: 05 July 2005 15:37 To: Pascal Peregrina; 'zope@zope.org' Subject: Re: [Zope] About Zope 2.7.7 ___ Zope maillist

[Zope] About Zope 2.7.7

2005-07-05 Thread Pascal Peregrina
Hi, I just finished upgrading our production servers to Zope 2.8.0 (from Zope 2.7.6) Today I noticed that Zope 2.7.7 is under development... and it contains some interesting bug fixes (the one concerning if modified since header handling for example). I guess that these fixes will be included in

RE: [Zope] Tweaking Zope DB- and connection parameters

2005-06-28 Thread Pascal Peregrina
zserver-threads and pool-size should be almost the same. Each HTTP request from Apache to Zope uses a Connection object bound to a Transaction object. As each Connection object has its own cache, then if the connection pool size is much higher than the number of zsever threads, you could end up

[Zope] ZopeProfiler issue

2005-06-27 Thread Pascal Peregrina
Hi, In a previous mail, I was asking if anyone had issues with ZopeProfiler and Zope 2.8. I have made many more tests and my issue is completely unrelated with Zope 2.8 (I got the same issue with Zope 2.7.6) The issue has to deal with an XML-RPC call to a java service (using the standard

[Zope] RE: ZopeProfiler issue (found root cause)

2005-06-27 Thread Pascal Peregrina
': return None return _Method(self.__send, %s.%s % (self.__name, name)) But a real fix will be needed on ZopeProfiler ! Thanks. Pascal -Message d'origine- De : Pascal Peregrina Envoyé : lundi 27 juin 2005 10:42 À : 'zope@zope.org' Objet : ZopeProfiler issue Hi, In a previous mail, I

RE: [Zope] Sharing global data between threads / locking a method

2005-06-27 Thread Pascal Peregrina
I think that storing an isMyProcessingStarted property would not work, because the transaction that modifies the property value would not be committed until the long processing is done, so when the next transaction that reads this value starts (if this happens before the previous one has

RE: [Zope] Debugging a python routine

2005-06-27 Thread Pascal Peregrina
Well, I guess that you want to debug here.lib.parse_file() as the rest is quiet obvious... If parse_file is a PythonScript, you can test it from the ZMI, and you should get a stack trace if an exception is raised. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL

RE: [Zope] RE: ZopeProfiler issue (found root cause)

2005-06-27 Thread Pascal Peregrina
] Envoyé : lundi 27 juin 2005 20:00 À : Pascal Peregrina Cc : 'zope@zope.org'; Paul Chudleigh Objet : Re: [Zope] RE: ZopeProfiler issue (found root cause) Pascal Peregrina wrote at 2005-6-27 11:53 +0200: I just finished reading xmlrpclib.py and ZopeProfiler code. Here is the root cause of the issue

[Zope] ZopeProfiler and Zope 2.8.0

2005-06-23 Thread Pascal Peregrina
Hi, I would like to know if anyone has tried using ZopeProfiler (1.4 version from http://www.dieter.handshake.de/pyprojects/zope/) with Zope 2.8.0 It was working fine with Zope 2.7.6 but it appears to cause the instance to hang with Zope 2.8.0... Thanks. Pascal

RE: [Zope] bytecode cache?

2005-06-22 Thread Pascal Peregrina
Well, as far as I know, bytecode is generated by the marshal module. And marshal can only precompile simple data types and code (classes, functions). So objects (class instances) can not be byte compiled. But I may be wrong... However, I had a funny idea too... I have been wondering about using

RE: [Zope] developing with zmi: how to move a patch from data fro m devel to live?

2005-06-20 Thread Pascal Peregrina
You can manually export objects from your dev zope to individual files and then import them back to the live instance through ZMI. You could try this : http://zsyncer.sourceforge.net/ It will enable you, for built-in Zope object types (but then you can extend it with your own types) to list the

RE: [Zope] custom_persist_obj

2005-06-20 Thread Pascal Peregrina
You have a built-in Zope object for this : PersistentMapping. dict1=PersistentMapping({'a':1,'b':1,'c':1, ...}) dict1=PersistentMapping({'a':2,'d':4,'e':6}) The only thing you can not do compared to dictionaries is : for key in dict1: do something (you need to use for key in dict1.keys():...)

RE: [Zope] Repository for common python scripts

2005-06-15 Thread Pascal Peregrina
here.common.parse_file() should work. Pascal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Poltorak Sent: 15 June 2005 13:37 To: zope@zope.org Subject: [Zope] Repository for common python scripts Can anyone recommend a way of setting up a library

RE: [Zope] ZEO recommended for single-cpu?

2005-06-14 Thread Pascal Peregrina
Also, concerning multi-cpu, I think it's the other way around. Because python processes only use one CPU, it's useless to run one Zope instance on a multi-cpu system, as only one CPU will be used. That's why on multi-cpu system lots of people run at least Zeo + one instance of Zope (and often

[Zope] Zope 2.8.0 monkey patch issue

2005-06-13 Thread Pascal Peregrina
Hi, I am trying to migrate from Zope 2.7.6 to 2.8.0 In some product I did, I need to monkey patch some OFS and CMF classes (I do this in product init). I get this error whenever I try to do someclass.__dict__[someclassattributename]=newvalue : TypeError: object does not support item assignment

RE: [Zope] Zope 2.8.0 monkey patch issue

2005-06-13 Thread Pascal Peregrina
Thanks, that works ! Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Bernd Dorn Envoyé : lundi 13 juin 2005 12:26 À : 'zope@zope.org' Objet : Re: [Zope] Zope 2.8.0 monkey patch issue Pascal Peregrina wrote: Hi, I am trying to migrate from Zope

RE: [Zope] Max Connections

2005-06-03 Thread Pascal Peregrina
2 parameters in zope.conf : zserver-threads (main section) : the number of threads (i.e. incoming request) Zope will try to handle simultaneously But if you increase this value, you must also increase : pool-size (zodb_db/zodb_db section) : the connection pool size to the ZODB By default,

RE: [Zope] Max Connections

2005-06-03 Thread Pascal Peregrina
Yup, that's what I did. I read somewhere that if you don't increase the pool size, as each request needs a connection object to the ZODB, then some of them may have to wait until one connection is freed by the others, which makes the zserver-threads increase useless... Pascal -Message

RE: [Zope] Max Connections

2005-06-03 Thread Pascal Peregrina
cache-size is the max number of objects each connection will try to keep in memory. You can see how it is currently performing when you go to the ZMI - Control Panel - Database Management - main - Cache Parameters Each line of the table is a connection of the pool. The total number of active an

[Zope] Fluctuation in response time

2005-05-19 Thread Pascal Peregrina
Hi all, In a Zope + Zeo 2.7.6 installation, with no request hitting the Zope instance, I have set up a script that does the same request every second. The response time is 15 to 17ms... So far, perfect. -- BUT -- Every 30 seconds, the response time (for one request) raises to 330ms (an then

[Zope] ZODB question

2005-05-11 Thread Pascal Peregrina
Hi, In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, to know when the database (Zeo) was last packed ? Thanks. Pascal ** This email and any files transmitted with it are confidential and intended

RE: [Zope] Re: ZODB question

2005-05-11 Thread Pascal Peregrina
by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pascal Peregrina wrote: In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, to know when

RE: [Zope] asyncore.py exception

2005-05-10 Thread Pascal Peregrina
Thanks. Pascal -Message d'origine- De : Dieter Maurer [mailto:[EMAIL PROTECTED] Envoyé : lundi 9 mai 2005 19:25 À : Pascal Peregrina Cc : 'zope@zope.org' Objet : Re: [Zope] asyncore.py exception Pascal Peregrina wrote at 2005-5-9 13:54 +0200: Does anyone know what can cause this type

[Zope] asyncore.py exception

2005-05-09 Thread Pascal Peregrina
Hi, Does anyone know what can cause this type of error : ERROR(200) ZServer uncaptured python exception, closing channel ZServer.HTTPServer.zhttp_channel connected 10.168.77.5:38607 at 0x3ed2006c channel#: 1546210 requests: (socket.error:(32, 'Broken pipe')

RE: [Zope] Memory management problems

2005-04-19 Thread Pascal Peregrina
My useless comment: In such a real world scenario, anyone would put squid between Zope and the millions of users. :) Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Peter Millar Envoyé : mercredi 20 avril 2005 02:28 À : [EMAIL PROTECTED]; Zope

RE: [Zope] tal:attributes and extra newline

2005-04-18 Thread Pascal Peregrina
warp to 0 and I got no more extra newlines. So, just to know, why is the default value 60 ? Pascal -Message d'origine- De : Andreas Jung [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 avril 2005 16:57 À : Pascal Peregrina; 'zope@zope.org' Objet : Re: [Zope] tal:attributes and extra newline

RE: [Zope] tal:attributes and extra newline

2005-04-18 Thread Pascal Peregrina
Ok, silly question then... :) Let's stop this thread now. Thanks for the answers. Pascal -Message d'origine- De : Fred Drake [mailto:[EMAIL PROTECTED] Envoyé : lundi 18 avril 2005 18:04 À : Pascal Peregrina Cc : zope@zope.org Objet : Re: [Zope] tal:attributes and extra newline On 4/18

RE: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-06 Thread Pascal Peregrina
About archetypes... Documentation http://plone.org/documentation/archetypes Nice presentation (in French) : http://lsm2004.abul.org/IMG/pdf/slides_-_zope_archetypes_-_Gilles_Lenfant_.p df (look at the links on page 35) Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL

RE: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Pascal Peregrina
I do exactly the same thing, except that I do it directly in the ZPT : span tal:omit-tag= tal:define=setcontentype python:here.REQUEST.RESPONSE.setHeader('content-type', 'text/css')/ Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Andy Yates Envoyé