[Zope-dev] Zope Tests: 5 OK

2008-07-03 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Jul 2 11:00:00 2008 UTC to Thu Jul 3 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Wed Jul 2 20:53:47 EDT 2008 URL:

[Zope-dev] zc.testbrowser.real support for mozlab 0.1.9

2008-07-03 Thread Sebastian Wehrmann
Hi, I've checked in a branch with changes to the testbrowser.real code to make it work with mozlab 0.1.9 (and firefox 3). Could someone please review the code and inform me, if I can merge it with the trunk? The branch can be found at

Re: [Zope-dev] zc.testbrowser.real support for mozlab 0.1.9

2008-07-03 Thread Benji York
On Thu, Jul 3, 2008 at 8:15 AM, Sebastian Wehrmann [EMAIL PROTECTED] wrote: Hi, I've checked in a branch with changes to the testbrowser.real code to make it work with mozlab 0.1.9 (and firefox 3). Cool. Could someone please review the code and inform me, if I can merge it with the trunk?

[Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Benji York
I'm working on making the zope.testing test runner run tests in parallelized subprocesses. The option will likely be spelled -j N, where N is the maximum number of processes. I have it basically working, but have noticed a couple odd corners of the test runner that I'd like to clean up. They

Re: [Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Christian Theune
On Thu, 2008-07-03 at 17:22 -0400, Benji York wrote: I'm working on making the zope.testing test runner run tests in parallelized subprocesses. The option will likely be spelled -j N, where N is the maximum number of processes. I have it basically working, but have noticed a couple odd

AW: [Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Roger Ineichen
Hi Benji Betreff: [Zope-dev] Test runner: layers, subprocesses, and tear down [... ] #2 will add some process start-up overhead, but it'll only be one more process than is already started (and any reasonably-sized test corpus already starts several processes for each test run). The one

Re: [Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Benji York
On Thu, Jul 3, 2008 at 5:37 PM, Christian Theune [EMAIL PROTECTED] wrote: On Thu, 2008-07-03 at 17:22 -0400, Benji York wrote: I'd like to 1) remove the layer tear-down mechanism entirely, and 2) make (almost) all layers run in a subprocess. I want to do #1 because it would simplify the test

Re: [Zope-dev] Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Marius Gedminas
On Thu, Jul 03, 2008 at 05:22:11PM -0400, Benji York wrote: I'm working on making the zope.testing test runner run tests in parallelized subprocesses. The option will likely be spelled -j N, where N is the maximum number of processes. That's wonderful news! I have it basically working, but

[Zope-dev] TALES iterator odd/even reversal

2008-07-03 Thread Marius Gedminas
Recently I migrated a large-ish app built on Zope 3.2 to Zope 3.4. (About time I hear someone mumbling in the audience.) One strange difference was that TALES iterators swapped the meaning of odd and even, i.e. p tal:repeat=item python: [1, 2, 3, 4] span

Re: [Zope-dev] Itemtraverser and Unauthorized vs Views

2008-07-03 Thread Marius Gedminas
On Tue, Jun 24, 2008 at 01:39:28PM +0200, Christian Theune wrote: I have a problem with the standard item traverser provided by zope.app.container: The item traverser looks up a object using the given name and a __getitem__ call on the context. If this raises a KeyError it tries to look up a

Re: [Zope-dev] zc.testbrowser.real support for mozlab 0.1.9

2008-07-03 Thread Graham Stratton
I've checked in a branch with changes to the testbrowser.real code to make it work with mozlab 0.1.9 (and firefox 3). Hi Sebastian, This is great. I spent all day yesterday trying to make this happen and didn't get anywhere. Sometimes I wake up with a better idea as to how to solve things,

[Zope-dev] Re: Test runner: layers, subprocesses, and tear down

2008-07-03 Thread Martin Aspeli
Benji York wrote: I'm working on making the zope.testing test runner run tests in parallelized subprocesses. I have some recent experience parallelising (and distributing across machines) test runs. This was in Java, with TestNG and Selenium, but we learned some interesting things. We

Re: [Zope-dev] Itemtraverser and Unauthorized vs Views

2008-07-03 Thread Christian Theune
On Fri, 2008-07-04 at 02:10 +0300, Marius Gedminas wrote: On Tue, Jun 24, 2008 at 01:39:28PM +0200, Christian Theune wrote: [...] I can explicitly make the URL use '@@viewname' and bypass the item traverser, but I don't like the @@s in the URL. I wonder whether adding Unauthorized to

Re: RE: [Zope] ZcxOracleDA, LocalFS, ZMySQLDA

2008-07-03 Thread csl
After implementing the Ingres adapter ZEIngresDA I found I was left high and dry when it came to deprecation messages and all else by ZEOmega.  I had to fix it myself.  - Original Message - From: Jeff Peterson [EMAIL PROTECTED] Date: Saturday, June 28, 2008 3:24 Subject: RE: [Zope]

[Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Peter Bengtsson
from cStringIO import StringIO def workflowscripts2methods(self): out = StringIO() print out, Star converting workflow scripts into External Methods pw = self.portal_workflow for workflow in pw.objectValues('Workflow'): for container in workflow.objectValues('Workflow

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andreas Jung
--On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: I'm getting an AssertionError on this!!! After having used objectValues() for so many many years without much trouble my confidence in it just dropped. After years of Zope, you know that we need a full traceback :-)

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Peter Bengtsson
2008/7/3 Andreas Jung [EMAIL PROTECTED]: --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: I'm getting an AssertionError on this!!! After having used objectValues() for so many many years without much trouble my confidence in it just dropped. After years of Zope,

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andrew Milton
+---[ Peter Bengtsson ]-- | 2008/7/3 Andreas Jung [EMAIL PROTECTED]: | | | --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: | | I'm getting an AssertionError on this!!! | After having used objectValues() for so many many years without much |

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Peter Bengtsson
2008/7/3 Andrew Milton [EMAIL PROTECTED]: +---[ Peter Bengtsson ]-- | 2008/7/3 Andreas Jung [EMAIL PROTECTED]: | | | --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: | | I'm getting an AssertionError on this!!! | After having used

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andreas Jung
--On 3. Juli 2008 16:01:53 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: 2008/7/3 Andreas Jung [EMAIL PROTECTED]: --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: I'm getting an AssertionError on this!!! After having used objectValues() for so many many years

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Andrew Milton
+---[ Peter Bengtsson ]-- | 2008/7/3 Andrew Milton [EMAIL PROTECTED]: | +---[ Peter Bengtsson ]-- | | 2008/7/3 Andreas Jung [EMAIL PROTECTED]: | | | | | | --On 3. Juli 2008 15:41:52 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: | | | |

Re: [Zope] Annoying when objectValues() doesn't work

2008-07-03 Thread Peter Bengtsson
2008/7/3 Andrew Milton [EMAIL PROTECTED]: +---[ Peter Bengtsson ]-- | 2008/7/3 Andrew Milton [EMAIL PROTECTED]: | +---[ Peter Bengtsson ]-- | | 2008/7/3 Andreas Jung [EMAIL PROTECTED]: | | | | | | --On 3. Juli 2008 15:41:52 +0100 Peter

[Zope] zope stops responding

2008-07-03 Thread Garry Saddington
Following a hard disk crash 2 weeks ago we have installed Zope onto a new server and all was fine until yesterday morning when Zope stopped responding and required a restart to get it working. It did the same at 3-30pm today. We are using Zope 2.9.0 on Centos 5.1 on a quad Zeon server with 4gb.

RE: [Zope] zope stops responding

2008-07-03 Thread Sours, Kevin
Have you tried looking at it with the deadlock debugger? That should give you an idea of what its actually running (and if the deadlock debugger is usually responsive even when zope isn't and if it isn't that's also information). Kevin -Original Message- From: [EMAIL PROTECTED]

Re: [Zope] zope stops responding

2008-07-03 Thread Peter Bengtsson
Yes, couldn't agree more with kevin. DeadlockDebugger is crucial. It won't change anything other than that you'll have information about what really needs to change. As an intermediate solution you can start to increase the number of Zope threads from 4 to 6 or 8 and see if that kills the CPU of

Re: [Zope] zope stops responding

2008-07-03 Thread Jaroslav Lukesh
I was same problems with new IBM hardware 2 yrs ago and etc at past. Wait, please, your HW will be good after 2..3 months - it needs burning process. It is known problem with very fresh silicon chips about diffusion of non-homogenities - look at mfg date at asphalt squares. But my english is

RE: [Zope] zope stops responding

2008-07-03 Thread Sours, Kevin
My experience is that increasing the number of threads past 4 does absolutely nothing to assist performance. Multi threads will help with the occasional long running request, but if its more than occasional then the thread list will eventually clog up no matter how many threads you have (and the

Re: [Zope] zope stops responding

2008-07-03 Thread Jaroslav Lukesh
Hi, I does not agree with You, because my servers runs with 20..150 threads, because lower number of threads makes for somebody infinity waiting and Zope under load responding very slow (with external database access). After increasing threads, response under load is more quickly and more

[Zope] Problems with Zope + Apahe and exUserFolder logins

2008-07-03 Thread Toni Vicens Arasanz
Hi everyone. I am migrating my web application to a new server and I am trying to configure Zope + Apache as described in http://wiki.zope.org/zope2/ZopeAndApache . I previously used fast-cgi to communicate Apache with Zope and it worked just fine. I use exUserFolder to store my users in a

Re: [Zope] Z2.log has Anonymous users

2008-07-03 Thread Dieter Maurer
Andreas Jung wrote at 2008-7-1 08:31 +0200: ... My plone instance doesn't log user names into the Z2.log access log file. Instead I always get user names as Anonymous. Is there any setting that I need to change to get the user name correctly? I am on the following versions of Plone/Zope: *

Re: [Zope] CMF security error in DCWorkflow that doesn't make sense

2008-07-03 Thread Dieter Maurer
Peter Bengtsson wrote at 2008-7-1 12:15 +0100: ... The owner of the executing script is defined outside the context of the object being accessed. The script has proxy roles, but they do not apply in this context.. Access to 'workflow' of (Products.DCWorkflow.Expression.StateChangeInfo instance at