Re: [Zope-dev] Next Step to Bug Resolution???

2009-01-09 Thread Chris Withers
Hedley Roos wrote: Chris mentioned unit tests. You do not have to write a new unit test. What is required is to have a look at the tests and then identify one that is relevant to your problematic method. This test should be very easy to read. The hard part is for you to expand this test to

Re: [Zope-dev] bug in zope.testing 3.7.1?

2009-01-09 Thread Chris Withers
Benji York wrote: On Fri, Dec 19, 2008 at 1:03 PM, Chris Withers ch...@simplistix.co.uk wrote: Hi Guys, Line 396 of doctest.py contains code which is, at best, platform-specific (and so a bug) or, more likely, irrelevent. Line 396 of doctest.py from zope.testing 3.7.1 doesn't include a

Re: [Zope-dev] adapting to None

2009-01-09 Thread Chris Withers
Shane Hathaway wrote: Chris Withers wrote: Now, you could, for example, then do: IFieldType([]) ...which should return None. I don't understand your example: what is a field type, It's a shortened naem for Type of Field Value, as I said, it could arguably be called IFieldValue, or

[Zope-dev] Why doesn't subclassing an Interface and overriding __call__ work with the C implementation?

2009-01-09 Thread Chris Withers
Alec Mitchell wrote: class IFieldType(Interface): def __call__(self,*args,**kw): r = Interface.__call__(*args,**kw) if r is empty: return None return r I suspect this would work with the python implementation of Interface, but it certainly

Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re:zope.browser?]

2009-01-09 Thread Roger Ineichen
Hi Martijn Betreff: Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re:zope.browser?] Hey there, Roger Ineichen wrote: [snip] I don't like that. Probably we should use the existing devmode or something like that? Devmode whould allow us to use it at runtime and during

[Zope-dev] Subclassing an Interface Doesn't Work?

2009-01-09 Thread Shane Hathaway
Chris Withers wrote: This is all interesting discussion, but I'd *really* like to know why subclassing an interface when the C-based implentation is in use doesn't work. Does *anyone* actually know the answer to this? (rather than avoiding it by trying to make the problem something else

Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re:zope.browser?]

2009-01-09 Thread Shane Hathaway
Martijn Faassen wrote: Besides an import checker you'd need a system that would be able to thrawl through a ZODB and report deprecated classes. The drawback is that it'd need to thrawl through a ZODB, so that's rather costly. Thrawl = thrashing crawl? Never heard that word before, but

Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re:zope.browser?]

2009-01-09 Thread Martijn Faassen
Shane Hathaway wrote: Martijn Faassen wrote: Besides an import checker you'd need a system that would be able to thrawl through a ZODB and report deprecated classes. The drawback is that it'd need to thrawl through a ZODB, so that's rather costly. Thrawl = thrashing crawl? Never heard