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
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
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
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,