[Zope3-dev] Re: Riddle: zope.interface versus zope.formlib

2006-08-24 Thread Philipp von Weitershausen
Stephan Richter wrote: from zope.interface import Interface from zope.schema import TextLine class IFoo(Interface): ... title = TextLine() ... class IBar(IFoo): ... pass ... IBar['title'] zope.schema._bootstrapfields.TextLine object at 0xb7bc17ac

[Zope3-dev] Re: Riddle: zope.interface versus zope.formlib

2006-08-24 Thread Stephan Richter
On Thursday 24 August 2006 02:29, Philipp von Weitershausen wrote: It's obviously IFoo, because:   IBar['title'] is IFoo['title']   True I sort of expect this. Why? Because it also happens with classes:   class Foo(object):   ...   x = object()   ...   class Bar(Foo):   ...   pass  

[Zope3-dev] Re: Riddle: zope.interface versus zope.formlib

2006-08-24 Thread Philipp von Weitershausen
Stephan Richter wrote: On Thursday 24 August 2006 02:29, Philipp von Weitershausen wrote: It's obviously IFoo, because: IBar['title'] is IFoo['title'] True I sort of expect this. Why? Because it also happens with classes: class Foo(object): ... x = object() ... class

Re: [Zope3-dev] Re: Riddle: zope.interface versus zope.formlib

2006-08-24 Thread Stephan Richter
On Thursday 24 August 2006 04:56, Philipp von Weitershausen wrote: formlib's use of the 'interface' attribute indeed suggests that people would expect a different behaviour. Feeling pretty much indifferent about this, I just wonder if there are any potential repercussions. For example,