RE: [Zope3-dev] FAILED (failures=2, errors=1) on win XP

2005-09-05 Thread Roger Ineichen
Hi Benji -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benji York Sent: Monday, September 05, 2005 6:16 AM To: zope3-dev@zope.org Subject: Re: [Zope3-dev] FAILED (failures=2, errors=1) on win XP Roger Ineichen wrote: Does somebody know how

Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/interfaces.py - add IIterableChoice and note the desire to depricate vocabularies

2005-09-05 Thread Fred Drake
On 9/5/05, Stuart Bishop [EMAIL PROTECTED] wrote: Urgh... I hadn't noticed that in vocabularies before. I believe this has other side effects too, such as if I do list(mysource), Python calls mysource.__len__ (if it exists) to preallocate the list size. Wierd things can happen if your class

Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/interfaces.py - add IIterableChoice and note the desire to depricate vocabularies

2005-09-05 Thread Tim Peters
[Fred Drake, on returning sys.maxint from __len__ if you don't know the length, which Tim strongly advises against] Interesting. I seem to remember this coming from Guido several times in discussions. Not me. Googling on site:mail.python.org maxint __len__ guido finds 9 hits, all

[Zope3-dev] Re: z3 webserver bug?

2005-09-05 Thread Martijn Pieters
Roger Ineichen wrote: Why does the z3 server parse this cookie and end in a CookieError? This happens useing ie 6.0 explorer. [..] File C:\Python24\lib\Cookie.py, line 453, in set raise CookieError(Illegal key value: %s % key) CookieError: Illegal key value: Williams/OU Because

Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/schema/interfaces.py - add IIterableChoice and note the desire to depricate vocabularies

2005-09-05 Thread Gary Poster
On Sep 5, 2005, at 12:39 AM, Stuart Bishop wrote: Benji York wrote: Stuart Bishop wrote: If this is a way of saying I'm iterable, but I don't want to tell you how long I am Right. shouldn't an exeption be raised? Otherwise 'for i in range(0,len(source)): foo = source[i]' could start

[Zope3-dev] Re: Source API

2005-09-05 Thread Stuart Bishop
Gary Poster wrote: The use case we are trying to address with the iterable source interface is that we want to be able to distinguish between sources that should be searched, and those that should be displayed as explicit choices. I'll call these 'searchable' and 'showable' sources and