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

2011-07-22 Thread Joe Steeve
Hello, I am trying to construct an object tree. Every node in the tree is of the same type. I am trying to achieve something like: class INode(Interface): parent = Object( title=uParent node, schema=INode )

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

2011-07-22 Thread Brian Sutherland
On Fri, Jul 22, 2011 at 04:29:32PM +0530, Joe Steeve wrote: Hello, I am trying to construct an object tree. Every node in the tree is of the same type. I am trying to achieve something like: class INode(Interface): parent = Object(

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

2011-07-22 Thread Jacob Holm
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 ) INode.children = List( title=u'Child nodes',

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] Referring to same interface using zope.schema.Object

2011-07-22 Thread Brian Sutherland
On Fri, Jul 22, 2011 at 01:41:32PM +0200, Jacob Holm wrote: On 2011-07-22 13:26, Brian Sutherland wrote: This would be my first guess: And that guess would be wrong. Thanks. Guess I should stop guessing;) -- Brian Sutherland ___ Zope-Dev

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']

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

2011-07-22 Thread Robert Niederreiter
Hi, On 22.07.2011 12:59, Joe Steeve wrote: Hello, I am trying to construct an object tree. Take a look at http://pypi.python.org/pypi/node This is probably what you need. Regards, Robert Every node in the tree is of the same type. I am trying to achieve something like: class

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

2011-07-22 Thread Michael Howitz
Am 22.07.2011 um 15:30 schrieb Robert Niederreiter: Hi, On 22.07.2011 12:59, Joe Steeve wrote: Hello, I am trying to construct an object tree. Take a look at http://pypi.python.org/pypi/node This is probably what you need. or even http://pypi.python.org/pypi/zope.container might be

[Zope-dev] zope-tests - FAILED: 4, OK: 78

2011-07-22 Thread Zope tests summarizer
This is the summary for test reports received on the zope-tests list between 2011-07-21 00:00:00 UTC and 2011-07-22 00:00:00 UTC: See the footnotes for test reports of unsuccessful builds. An up-to date view of the builders is also available in our buildbot documentation: