Referring to same interface using zope.schema.Object

Joe Steeve <[email protected]>
Newsgroups gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel
Organization HiPro IT Solutions Pvt. Ltd.
Message-ID <1311332372.2331.15.camel@lark>
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=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

-- 
Joe Steeve
HiPro IT Solutions Pvt. Ltd.
http://hipro.co.in/
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk4pWBMACgkQ6FrXDx3swEMHEgCfTdw+QcjaVv5xOaA9h5E/UpGC
Yb0AnRr3PwZzkBNcMVm0kNW2NrLYAoWA
=ZdLD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.