locatability of objects inside a list in bluebream

Joshua Immanuel <[email protected]>
Newsgroups gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel
Organization HiPro IT Solutions Private Limited
Message-ID <1314258898.3453.89.camel@jimman>
Hello all,
	I have a following interface definitions

        class IMyListObject(Interface):
        
            name = TextLine(
                title=u'Name')
            
        class IMyObject(Interface):
        
            name = TextLine(
                title=u'Name')
        
                ...
        
            my_list = List(
                title=u'My Object list',
                value_type=Object(
                    title='My List Object',
                    schema=IMyListObject)
                )

For adding the 'IMyListObject' into the my_list of 'IMyObject' I created
a browser page for 'IMyObject' with zope.formlib AddForm's form_fields
set to 'IMyListObject' and appended them to the 'my_list' field. That
part works great.

But I like to know, what is the preferred way of making objects inside
the 'my_list' to be locatable. So that I can have an edit page or a
display page for the 'IMyListObject' in that list.

One approach what I thought was to make 'IMyObject' as a container with
all other schema fields in place except the 'my_list' field and add the
'IMyListObject' to the 'IMyObject' as child objects, so that all the
'IMyListObject' objects are locatable.

But I really wanted to know if it is possible to make objects inside a
list locatable as that would be necessary in the case of creating an
object tree of the following format.

        class INode(Interface):
        
                parent = Object(
                        title=u"Parent node",
                        schema=Interface
                        )
        
                children = List(
                        title=u'Child nodes',
                        value_type=Object(schema=Interface)
                        )
        INode['parent'].schema = INode
        INode['children'].value_type.schema = INode
        
Please guide me in this regard.

[Sorry for always cross posting to both bluebream and zope-dev mailing
lists. Also I find another not so active zope3-users mailing list
available. As most of my queries gets answered from zope-dev mailing
list I am still in confusion on which mailing list to single out. Kindly
bear with me.]

Regards
-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk5V/8kACgkQWw85XwuSFMLvZwCfS8IWAVQC86z1N4I4GYJd4bcu
OcUAoJ0zbR7yylAhHONmNaKdv1It1zrz
=LnJd
-----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.