Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
Hello, On Fri, 2011-07-22 at 13:41 +0200, Jacob Holm wrote: On 2011-07-22 13:26, Brian Sutherland wrote: This would be my first guess: class INode(Interface): pass INode.parent = Object( title=uParent node, schema=INode

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Jacob Holm
On 2011-07-22 14:32, Joshua Immanuel wrote: Hello, On Fri, 2011-07-22 at 13:41 +0200, Jacob Holm wrote: On 2011-07-22 13:26, Brian Sutherland wrote: This would be my first guess: class INode(Interface): pass INode.parent = Object( title=uParent node,

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Laurence Rowe
On 22 July 2011 13:32, Joshua Immanuel j...@hipro.co.in wrote: Hello, On Fri, 2011-07-22 at 13:41 +0200, Jacob Holm wrote: On 2011-07-22 13:26, Brian Sutherland wrote: This would be my first guess:     class INode(Interface):         pass     INode.parent = Object(            

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
Hello Laurence, On Fri, 2011-07-22 at 13:57 +0100, Laurence Rowe wrote: No, there are issues. Take this example: class ITest(Interface): ... title = schema.TextLine() ... ITest.names bound method InterfaceClass.names of InterfaceClass __main__.ITest ITest.names() ['title']

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
Hello Laurence, On Fri, 2011-07-22 at 13:57 +0100, Laurence Rowe wrote: No, there are issues. Take this example: class ITest(Interface): ... title = schema.TextLine() ... ITest.names bound method InterfaceClass.names of InterfaceClass __main__.ITest ITest.names() ['title']