Re: [Zope3-Users] How To Solve in Zope 3
On 2/5/06, David Johnson <[EMAIL PROTECTED]> wrote: > That is exactly it. I wonder how to connect them in the ZMI. So far, my > leading thought is to create a Network container that contains IP Addresses. > I will then register the Hosts as utilities. Each IP address will have be > able to select a Host utility. Well, how about storing is persistent list of ip-adresses on the host, which you then can look up the ip-address object with? > From a python perspective all of this is no problem; it's making it all > presentable and manageable that is the crux. I think you are overcomplicating it. When the python level is ready, it's really only a question of how to generate the HTML code to display it... -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] How To Solve in Zope 3
> The network do ont contain the hosts, they conect them, and the hosts > do not contain the networks, so neither, a far as I can see. You need > separate networks and hosts lists, where the hosts can be connected to > one or more networks. That is exactly it. I wonder how to connect them in the ZMI. So far, my leading thought is to create a Network container that contains IP Addresses. I will then register the Hosts as utilities. Each IP address will have be able to select a Host utility. It's not elegant at all. I am exploring how to use a Catalog as well. >From a python perspective all of this is no problem; it's making it all presentable and manageable that is the crux. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
On 2/3/06, David Johnson <[EMAIL PROTECTED]> wrote: > There will exist the situation in which some hosts will have IP addresses on > different networks. Should networks be the container? Should hosts? Some > other solution? What would you do? The network do ont contain the hosts, they conect them, and the hosts do not contain the networks, so neither, a far as I can see. You need separate networks and hosts lists, where the hosts can be connected to one or more networks. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
Fermigier Stefane wrote: Gary Poster wrote: - Jean-Marc Orliaguet's relationship code, which is based on extrinsic triadic relationships, GPL, and used for CPSSkins; Cf. http://svn.z3lab.org/trac/z3lab/file/cpsskins/branches/jmo-perspectives/doc/peirce-relations.txt http://svn.z3lab.org/trac/z3lab/browser/cpsskins/branches/jmo-perspectives/relations/ in case you didn't find it naturally. S. It's ZPL, by the way. It supports monadic, dyadic and triadic types of relations; the triadic ones are mainly used to create relations in a given context. It is designed to be scalable and fast, since it is used to render pages and a same page may easily involve 50 or 100 relations. All relations are indexed, so basically a query involves looking up a single key in a OOBTree. Complex queries similar to catalog queries are not supported, for performance reasons, but there is some flexibility for creating complex predicates. /JM ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
Gary Poster wrote: > > - Jean-Marc Orliaguet's relationship code, which is based on > extrinsic triadic relationships, GPL, and used for CPSSkins; Cf. http://svn.z3lab.org/trac/z3lab/file/cpsskins/branches/jmo-perspectives/doc/peirce-relations.txt http://svn.z3lab.org/trac/z3lab/browser/cpsskins/branches/jmo-perspectives/relations/ in case you didn't find it naturally. S. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
On 2/3/06, Gary Poster <[EMAIL PROTECTED]> wrote: > > On Feb 3, 2006, at 9:32 PM, matt wilbert wrote: > > > I have exactly the same situation, as I am writing a network > > management tool. I am using one big container and a local catalog. > > Then you can slice and dice as best suits you. I also think it is > > more extensible if you ever think you might add new object types. > > > > There is also the relationships stuff in Schooltool. I haven't > > needed it yet, but I was thinking it might be useful. I used those this week, with some success. I found the API a little hard to work with - I think it has RDF influences and I had a bit of a time getting my brain to wrap to that. But borrowing some ideas from zope.agxassociation, I made a Field and a property that uses that Field and got a pleasantly working system that masks some of the things that I had a hard time wrapping my head around (roles, groups, etc). > That's GPL, if that makes a difference to you, and designed for > intrinsic relationships. There's also One of these days, I'm going to need to learn what GPL really means, and how it should affect my choices of libraries that are open source that seem comparatively similar otherwise but for the license. I guess I need to revisit all the code we're using and check the licenses again, since we might be branching into some new business models. > - zc.relationship, which is ZPL, relatively simple in concept, > designed for extrinsic relationships between persistent objects, and > pretty flexible; Ooo. I'll have to take a look at that one. > - zope.agxassociation, which is ZPL, relatively simple in concept, > and designed for intrinsic relationships; I was looking at this earlier this week, but it seemed incomplete... Actually, in subversion, the interfaces.py module ends after an opening parenthesis. Was I looking in the wrong place? I liked what I generally saw of agxassociation, but saw no concept of removing associations (only adding them). schoolbell.relationships (from Schoolbell 1.2.x) seemed a bit more complete. I hope it makes it into the Zope core. Now that I have relationships in my application, a whole new world has opened up - especially now that I've rigged up a system that doesn't require me to think in RDF. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
On Feb 3, 2006, at 9:32 PM, matt wilbert wrote: I have exactly the same situation, as I am writing a network management tool. I am using one big container and a local catalog. Then you can slice and dice as best suits you. I also think it is more extensible if you ever think you might add new object types. There is also the relationships stuff in Schooltool. I haven't needed it yet, but I was thinking it might be useful. That's GPL, if that makes a difference to you, and designed for intrinsic relationships. There's also - zc.relationship, which is ZPL, relatively simple in concept, designed for extrinsic relationships between persistent objects, and pretty flexible; - zope.agxassociation, which is ZPL, relatively simple in concept, and designed for intrinsic relationships; - zemantic, which is extrinsic, RDF-based, and designed for the full flexibility of RDF; - Jean-Marc Orliaguet's relationship code, which is based on extrinsic triadic relationships, GPL, and used for CPSSkins; - Helmut Merz's relationship code (http://svn.cy55.de/viewcvs/Zope3/ src/cybertools/trunk/relation); - and more, I bet! Whew! :-/ Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] How To Solve in Zope 3
I have exactly the same situation, as I am writing a network management tool. I am using one big container and a local catalog. Then you can slice and dice as best suits you. I also think it is more extensible if you ever think you might add new object types. There is also the relationships stuff in Schooltool. I haven't needed it yet, but I was thinking it might be useful.Matt WilbertOn 2/3/06, David Johnson <[EMAIL PROTECTED]> wrote: I have a situation in which I have 3 different classes: "Networks", "IPAddress", "Host", that map out an intranet. Of course "Networks" can contain 0…* "IPAddress" And Of course a "Host" can contain 0…* "IPAddress" There will exist the situation in which some hosts will have IP addresses on different networks. Should networks be the container? Should hosts? Some other solution? What would you do? -- David Johnson [EMAIL PROTECTED] 201 Main Street Suite 1320 Fort Worth, TX 76102 (877) 572-8324 x2200 ___Zope3-users mailing listZope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] How To Solve in Zope 3
I have a situation in which I have 3 different classes: “Networks”, “IPAddress”, “Host”, that map out an intranet. Of course “Networks” can contain 0…* “IPAddress” And Of course a “Host” can contain 0…* “IPAddress” There will exist the situation in which some hosts will have IP addresses on different networks. Should networks be the container? Should hosts? Some other solution? What would you do? -- David Johnson [EMAIL PROTECTED] 201 Main Street Suite 1320 Fort Worth, TX 76102 (877) 572-8324 x2200 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users