[Zope-dev] Zope Tests: 8 OK, 1 Failed

2006-11-24 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Nov 23 12:00:00 2006 UTC to Fri Nov 24 12:00:00 2006 UTC. There were 9 messages: 9 from Zope Unit Tests. Test failures - Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux From: Zope Unit Tests Date: Thu Nov 23

Re: [Zope-dev] version.txt magic

2006-11-24 Thread Christian Steinhauer
Hi, Zope 2.9 and Zope 2.10 currently show up with unreleased version inside the control panel. App/version_txt.py tries to read the file lib/python/Zope2/version_txt. This file is usually created by the 'makefile'. The makefile of Zope 2.9 create the file in the proper location however in

Re: [Zope] help performance

2006-11-24 Thread Yuri
Jonathan wrote: - Original Message - From: Yuri [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, November 23, 2006 11:07 AM Subject: [Zope] help performance Hi! I've an old machine with zope 2.6 with an application based on ZClass. Now, updating 4000 record takes ages (more than

Re: [Zope] help performance

2006-11-24 Thread Yuri
Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 23. November 2006 17:07:39 +0100 Yuri [EMAIL PROTECTED] wrote: Hi! I've an old machine with zope 2.6 with an application based on ZClass. Now, updating 4000 record takes ages (more than an hour...), basically it

Re: [Zope] help performance

2006-11-24 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 24. November 2006 11:16:50 +0100 Yuri [EMAIL PROTECTED] wrote: ZopeProfiler will tell you about bottlenecks. Doesn't work in zope 2.6 based on python 2.1 :( Try CallProfiler instead. - -aj - -- ZOPYX Ltd. Co. KG -

Re: [Zope] help performance

2006-11-24 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 24. November 2006 11:20:39 +0100 Andreas Jung [EMAIL PROTECTED] wrote: ZopeProfiler will tell you about bottlenecks. Doesn't work in zope 2.6 based on python 2.1 :( Try CallProfiler instead. and *enable* subtransactions! - -aj

Re: [Zope] help performance

2006-11-24 Thread Yuri
Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 24. November 2006 11:20:39 +0100 Andreas Jung [EMAIL PROTECTED] wrote: ZopeProfiler will tell you about bottlenecks. Doesn't work in zope 2.6 based on python 2.1 :( Try CallProfiler

[Zope] Specifying the target language with i18n

2006-11-24 Thread Daniel de la Cuesta
Hello, I am trying to set the target language using i18n:target label Example: p i18n:translate= i18n:target=string:en label_search /p It doesn't work. I cannot specify the target language. I am in Zope 2.9.4. Thank you.

Re: [Zope] help performance

2006-11-24 Thread Chris Withers
Yuri wrote: When I have a transaction wich takes almost 1 sec, I don't think it will change anything :) You might be surprised... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: [Zope] help performance

2006-11-24 Thread Martijn Pieters
On 11/24/06, Yuri [EMAIL PROTECTED] wrote: and *enable* subtransactions! When I have a transaction wich takes almost 1 sec, I don't think it will change anything :) I'll try CallProfiler :) Did you try? Subtransactions are not the same as transactions. They are an optimization, so try them!

Re: [Zope] help performance

2006-11-24 Thread Yuri
Martijn Pieters wrote: On 11/24/06, Yuri [EMAIL PROTECTED] wrote: and *enable* subtransactions! When I have a transaction wich takes almost 1 sec, I don't think it will change anything :) I'll try CallProfiler :) Did you try? Subtransactions are not the same as transactions. They are an

[Fwd: Re: [Zope] help performance]

2006-11-24 Thread Yuri
Martijn Pieters wrote: On 11/24/06, Yuri [EMAIL PROTECTED] wrote: and *enable* subtransactions! When I have a transaction wich takes almost 1 sec, I don't think it will change anything :) I'll try CallProfiler :) Did you try? Subtransactions are not the same as transactions. They are an

Re: [Fwd: Re: [Zope] help performance]

2006-11-24 Thread Martijn Pieters
On 11/24/06, Yuri [EMAIL PROTECTED] wrote: 8.7971 was the time without subtransactions, 2.3 with. Ops... -.- Indeed. And if you tweak the threshold as Jonathan suggested, you could even get it lower. -- Martijn Pieters ___ Zope maillist -

Re: [Fwd: Re: [Zope] help performance]

2006-11-24 Thread Yuri
Martijn Pieters wrote: On 11/24/06, Yuri [EMAIL PROTECTED] wrote: 8.7971 was the time without subtransactions, 2.3 with. Ops... -.- Indeed. And if you tweak the threshold as Jonathan suggested, you could even get it lower. Just to clarify, 2.3 sec is the time to insert only one object :)

[Zope] Re: Specifying the target language with i18n

2006-11-24 Thread Josef Meile
Hi Daniel, Hello, I am trying to set the target language using i18n:target label Example: p i18n:translate= i18n:target=string:en label_search /p It doesn't work. I cannot specify the target language. I am in Zope 2.9.4. Just a guess: Don't you need to specify a domain as well?

[Zope] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I have an problem with this little script. The script is in the zope file structure and it is an -Script (Python)- The script should send 2 emails over the mailhost, but it sends 4 emails. I have test this with maildrophost product too, same problem. I have test it on Zope 2.10.0 and Zope 2.64.

Re: [Zope] error with simple python script loop

2006-11-24 Thread Chris Withers
Christian Steinhauer wrote: This script produce the error: start for i in range(2): subj = str(i) + ' range python' context.MailHost.send('range test with python', [EMAIL PROTECTED], [EMAIL PROTECTED], subj) end As I said in the tracker, no one can help you if you

Re: [Zope] error with simple python script loop

2006-11-24 Thread Maciej Wisniowski
The script should send 2 emails over the mailhost, but it sends 4 emails. I have test this with maildrophost product too, same problem. I have test it on Zope 2.10.0 and Zope 2.64. The problem is the same - everytime. How do you call this script? Directly (via URL)? Or it is called by

Re: [Zope] Re: Specifying the target language with i18n

2006-11-24 Thread Daniel de la Cuesta
It is not necesary. Anyway, if I specify my domain nothing happens. - Mensaje original De: Josef Meile [EMAIL PROTECTED] Para: zope@zope.org Enviado: viernes, 24 de noviembre, 2006 13:03:31 Asunto: [Zope] Re: Specifying the target language with i18n Hi Daniel, Hello, I am trying

[Zope] Re: Specifying the target language with i18n

2006-11-24 Thread Josef Meile
Example: p i18n:translate= i18n:target=string:en label_search /p It doesn't work. I cannot specify the target language. I am in Zope 2.9.4. Just a guess: Don't you need to specify a domain as well? Ok, I tested it as well and it didn't work either. I just found it is a bug and here is a

Re: [Zope] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
As I said in the tracker, no one can help you if you don't actually give us the full traceback and exception that you got. There is no traceback, i got no error - thats why i have post it into bug tracker. I spoke to many people but no one can tell me why it occured. The most said that it

Re: [Zope] error with simple python script loop

2006-11-24 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 24. November 2006 13:39:07 +0100 Christian Steinhauer [EMAIL PROTECTED] wrote: As I said in the tracker, no one can help you if you don't actually give us the full traceback and exception that you got. There is no traceback, i got no

Re: [Zope] error with simple python script loop

2006-11-24 Thread Jonathan
- Original Message - From: Christian Steinhauer [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, November 24, 2006 7:12 AM Subject: [Zope] error with simple python script loop I have an problem with this little script. The script is in the zope file structure and it is an -Script

Re: [Zope] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I just cut and pasted your code into a python script on my Zope installation (2.9.2) and it worked as expected (ie. 2 emails sent). So something is pooched in your installation. A quick way to check to see if your script is looping more than you expect is to do something like: loopCheck =

[Zope] Re: [Zope-dev] version.txt magic

2006-11-24 Thread Christian Steinhauer
Zope 2.9 and Zope 2.10 currently show up with unreleased version inside the control panel. App/version_txt.py tries to read the file lib/python/Zope2/version_txt. This file is usually created by the 'makefile'. The makefile of Zope 2.9 create the file in the proper location however in Zope

Re: [Zope] error with simple python script loop

2006-11-24 Thread Jonathan
- Original Message - From: Christian Steinhauer [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED]; zope@zope.org Sent: Friday, November 24, 2006 8:19 AM Subject: Re: [Zope] error with simple python script loop I just cut and pasted your code into a python script on my Zope

RE: [Zope] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I tried to reproduce your '4 iteration' problem on my Zope 2.9.2 installation, but even by removing the 'return' statement I still got 2 loop iterations (and 2 emails). I have never written a python script that did not have a 'return' statement. I don't know if it is mandatory or not. I

Re: [Zope] error with simple python script loop

2006-11-24 Thread Maciej Wisniowski
Hi Jonathan, thanks for taking care of the problem. I have done the self test you do with the list. But everytime when something is written at last line, example return 'eof' (My example in the topic) the error did not occured - so the list gives me 2 and i will get 2 emails. So try

[Zope] Re: error with simple python script loop

2006-11-24 Thread Josef Meile
I have test the script on my local windows python version with an print statement, and it works fine - everytime - so its only on zope. i cant use pdb on zopeĀ“s python script i think? Are you using the same mail servers? Anyway, another thing you could do would be to run the script in debug

Re: [Zope] error with simple python script loop

2006-11-24 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24 Nov 2006, at 14:38, Jonathan wrote: I have never written a python script that did not have a 'return' statement. I don't know if it is mandatory or not. I usually use python scripts as subroutines/functions and I always have a return

Re: AW: [Zope-DB] [ANN] Modified version of DCOracle2 is available

2006-11-24 Thread Maciej Wisniowski
you remember my report http://mail.zope.org/pipermail/zope/2005-August/160762.html of an BUG for the handling of LONGs in DCO2? In fact I forgot about this... The consequence of this BUG is stochastic results for LONG fields We use an Fix of this BUG: I've put your code into