[Zope-dev] Re: Deciphering Zope Comments

2008-06-05 Thread Christian Zagrodnick
On 2008-06-04 20:28:07 +0200, Dieter Maurer [EMAIL PROTECTED] said: Shane Hathaway wrote at 2008-6-4 00:01 -0600: That led me to the zope.thread module, which is apparently deprecated already, yet zope.app.component still depends on it. Is that an hysterical accident? As I have read,

Re: [Zope-dev] Re: SQLAlchemy (zope.sqlalchemy) integration

2008-06-05 Thread Hermann Himmelbauer
Am Mittwoch, 4. Juni 2008 22:09 schrieb Laurence Rowe: Hermann Himmelbauer wrote: In my application, I then use getSASession() to retrieve my session. However, what I think is not that beautiful is the s.bind = engine part. Are there any suggestions how to improve this? You have two

[Zope-dev] Zope Tests: 5 OK

2008-06-05 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Jun 4 11:00:00 2008 UTC to Thu Jun 5 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 Jun 4 21:00:48 EDT 2008 URL:

Re: [Zope-dev] Conflict Errors

2008-06-05 Thread Wichert Akkerman
Previously David Otero Figueroa wrote: Hello everyone, I have a couple questions related to conflict errors. During our home page stress testing (20 concurrent users), we detected several conflict errors (see trace below), We thought these could ONLY appear when writing objects in the

[Zope-dev] Conflict Errors

2008-06-05 Thread David Otero Figueroa
Hello everyone, I have a couple questions related to conflict errors. During our home page stress testing (20 concurrent users), we detected several conflict errors (see trace below), We thought these could ONLY appear when writing objects in the ZODB. 2008-05-27T18:57:53 INFO ZODB conflict

Re: [Zope-dev] Conflict Errors

2008-06-05 Thread Jim Fulton
On Jun 5, 2008, at 10:16 AM, Jim Fulton wrote: On Jun 5, 2008, at 9:52 AM, David Otero Figueroa wrote: I would like to know: - Can conflict errors appear when reading objects from the ZODB? Yes Gaaa. I meant no. Jim -- Jim Fulton Zope Corporation

[Zope-dev] Restricted Python not handling slices correctly

2008-06-05 Thread Stephan Richter
Hi everyone, I am starting to use Restricted Python a lot and I found the following problem with slicing: from zope.security import checker l = [1, 2] l[-3:] [1, 2] lp = checker.ProxyFactory(l) lp[-3:] [2] The problem is that -3 gets converted to 1 somewhere, but it should be a negative

[Zope-dev] Re: SQLAlchemy (zope.sqlalchemy) integration

2008-06-05 Thread Laurence Rowe
Hermann Himmelbauer wrote: Am Mittwoch, 4. Juni 2008 22:09 schrieb Laurence Rowe: Hermann Himmelbauer wrote: In my application, I then use getSASession() to retrieve my session. However, what I think is not that beautiful is the s.bind = engine part. Are there any suggestions how to improve

[Zope-dev] Re: Restricted Python not handling slices correctly

2008-06-05 Thread Martijn Faassen
Hey Stephan, Stephan Richter wrote: I am starting to use Restricted Python a lot I'm curious to learn what you're using it for. Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No

Re: [Zope-dev] Re: Restricted Python not handling slices correctly

2008-06-05 Thread Stephan Richter
On Thursday 05 June 2008, Martijn Faassen wrote: Stephan Richter wrote: I am starting to use Restricted Python a lot I'm curious to learn what you're using it for. I cannot give you the full details yet, but Keas, the company I am working for now, has been developing a domain-specific

[Zope-dev] Re: Restricted Python not handling slices correctly

2008-06-05 Thread Martijn Faassen
Stephan Richter wrote: On Thursday 05 June 2008, Martijn Faassen wrote: Stephan Richter wrote: I am starting to use Restricted Python a lot I'm curious to learn what you're using it for. I cannot give you the full details yet [snip hints] Thanks for the info nonetheless. My curiosity has

[Zope-dev] fast_listen - fast-listen for 2.11

2008-06-05 Thread Stefan H. Holek
I'd like to sneak the following patch into 2.11 before final. The idea is that zope.conf option names should use dashes and not underscores. The downside is that it will break all zope.conf files that already use this option. Objections? Stefan +Bugs Fixed + + - Fixed

Re: [Zope-dev] Restricted Python not handling slices correctly

2008-06-05 Thread Shane Hathaway
Stephan Richter wrote: Hi everyone, I am starting to use Restricted Python a lot and I found the following problem with slicing: from zope.security import checker l = [1, 2] l[-3:] [1, 2] lp = checker.ProxyFactory(l) lp[-3:] [2] The problem is that -3 gets converted to 1 somewhere, but

Re: [Zope-dev] fast_listen - fast-listen for 2.11

2008-06-05 Thread Christian Theune
On Fri, Jun 06, 2008 at 01:37:16AM +0200, Stefan H. Holek wrote: I'd like to sneak the following patch into 2.11 before final. The idea is that zope.conf option names should use dashes and not underscores. The downside is that it will break all zope.conf files that already use this option.

[Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
Hi all. I need to query a ZCatalog, and I would like to know how many elements are there. I'm working from inside a python product, so, I could do something like: results = Catalog(criteria) return len(results) But this creates a number of objects which are completly useless for me. After all,

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Janko Hauser
Am 05.06.2008 um 12:56 schrieb Marco Bizzarri: Hi all. I need to query a ZCatalog, and I would like to know how many elements are there. I'm working from inside a python product, so, I could do something like: results = Catalog(criteria) return len(results) But this creates a number of

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
On Thu, Jun 5, 2008 at 1:28 PM, Janko Hauser [EMAIL PROTECTED] wrote: Am 05.06.2008 um 12:56 schrieb Marco Bizzarri: Hi all. I need to query a ZCatalog, and I would like to know how many elements are there. I'm working from inside a python product, so, I could do something like: results

Re: [Zope] acl_users folder 25000

2008-06-05 Thread Martijn Jacobs
It appears that the database of my client is not accessible. They can provide me an excel file with the members. The intended application actually is an election. It is a one time thing. Every member is using this application once, and presumably not all of them. Would it still be unwise

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Tino Wildenhain
Hi, Marco Bizzarri wrote: ... if result: result_len = results.actual_result_count else: result_len = 0 return result_len ... Thanks for your answer, but there is something I do not understand: if results: an empty result from ZCatlog is false in a boolen condition? Yes, thats

Re: [Zope] acl_users folder 25000

2008-06-05 Thread Martijn Jacobs
I wouldn't know, it seems like something is not correctly configured to reach the GMail server. However, I suggested the gmailauthplugin as an example for writing a PAS plugin, not as a functional product for a website :) Take a look authenticateCredentials in GMailAuthPlugin.py, there is

RE: [Zope] acl_users folder 25000

2008-06-05 Thread Kees de Brabander
_ Van: Martijn Jacobs [mailto:[EMAIL PROTECTED] Verzonden: donderdag 5 juni 2008 15:35 Aan: Kees de Brabander CC: zope@zope.org Onderwerp: Re: [Zope] acl_users folder 25000 It appears that the database of my client is not accessible. They can provide me an excel file with the

Re: [Zope] Counting the elements of a result in a ZCatalog

2008-06-05 Thread Marco Bizzarri
On Thu, Jun 5, 2008 at 3:35 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Hi, Marco Bizzarri wrote: ... if result: result_len = results.actual_result_count else: result_len = 0 return result_len ... Thanks for your answer, but there is something I do not understand: if results: