<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    On 22.07.2011 12:59, Joe Steeve wrote:
    <blockquote cite="mid:1311332372.2331.15.camel@lark" type="cite">
      <pre wrap="">Hello,

I am trying to construct an object tree.</pre>
    </blockquote>
    Take a look at <a class="moz-txt-link-freetext" href="http://pypi.python.org/pypi/node">http://pypi.python.org/pypi/node</a><br>
    This is probably what you need.<br>
    <br>
    Regards, Robert<br>
    <br>
    <blockquote cite="mid:1311332372.2331.15.camel@lark" type="cite">
      <pre wrap=""> Every node in the tree is of
the same type. I am trying to achieve something like:

        class INode(Interface):
        
            parent = Object(
                title=u"Parent node",
                schema=INode
                )
        
            children = List(
                title=u'Child nodes',
                value_type=Object(schema=INode)
                )

The above fails with "NameError: name 'INode' is not defined". Any clues
as to how to solve this?

Regards,
Joe

</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Zope-Dev maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Zope-Dev@zope.org">Zope-Dev@zope.org</a>
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-dev">https://mail.zope.org/mailman/listinfo/zope-dev</a>
**  No cross posts or HTML encoding!  **
(Related lists - 
 <a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-announce">https://mail.zope.org/mailman/listinfo/zope-announce</a>
 <a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope">https://mail.zope.org/mailman/listinfo/zope</a> )
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Robert Niederreiter

Squarewave Computing
Aflingerstraße 19
A-6176 Völs
Tel: +43 699 160 20 192
Web: <a class="moz-txt-link-freetext" href="http://www.squarewave.at">http://www.squarewave.at</a></pre>
  </body>
</html>