Re: [Zope3-Users] Links / Relationships (again)

2006-10-30 Thread Gary Poster


On Oct 30, 2006, at 11:56 AM, Stephan Richter wrote:

All the zc packages should be up-to-date. In the Lovely projects we  
use
zc.relationship, even though it is much more complicated than it  
should be.


That seems unnecessarily derogatory. :-)  But I know where you are  
coming from.


As the author, I'd say  more low level than most people want.  The  
low-level interface--the index--is precisely what I needed for the  
projects for which it was developed.


The containers in the relationship package were experiments at a more  
friendly wrapper.  Other friendly wrappers that constrain the  
capabilities in exchange for the greater ease of use found in  
packages like the zc.schooltool code have been threatened by others.   
That would be great.


Meanwhile, I am as sure as I can be without having used it myself  
that the zc.schooltool relationship package is easier to use for  
common use cases.  If you need something more flexible, you may want  
to look at the zc.relationship index.


Gary
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Jeff Shell

Howdy.

What is the state of various relationship / link managers for Zope 3?
A year ago we banged out a quick idea that used Int IDs to track links
(mostly to generate in-site URLs) to target objects. And then we ended
up copying and pasting the code across a lot of projects. I'm wanting
to clean that up by, perhaps, implementing a widget. But I'm wondering
if there's a better way to track references to targets.

A source object might be a banner ad or promo button with a link to
some other internal object like a page with more details.

For one customer I made a Schema field and a Property that used
schoolbell.relationship (probably from a quite old version of
Schoolbell) but made it basically as easy to use as what I could
figure out from zope.agxassociation, which doesn't appear to be
finished. Basically I generated the Triple that
schoolbell.relationship requires automatically using interface/field
names to make the URI. (I don't think in RDF, so I wanted that aspect
to be as invisible as possible). I don't know whether I should reuse
what I made there, or if there were some other viable options.

Basically, I would like there to be a way that I can easily query an
object to see if there are any links pointing in its direction so that
I could handle a Delete operation. IE - Deleting the Summer Sale
page will break the following items: (1. Summer Sale Promo, 2. Summer
Sale Newsletter Banner). Do you want to delete those as well? .. or
something like that. It's a bit beyond the scope of my current
project, but is something I'd like to get back to.

I see there's a `zc.extrinsicreference` in the svn.zope.org
repository. Is that in a usable state?

Thanks,
Jeff Shell
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Benji York

Jeff Shell wrote:

I see there's a `zc.extrinsicreference` in the svn.zope.org
repository. Is that in a usable state?


Yep.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Gary Poster


On Oct 16, 2006, at 6:48 PM, Jeff Shell wrote:


I see there's a `zc.extrinsicreference` in the svn.zope.org
repository. Is that in a usable state?


As Benji said, yes, and it sounds like it might fit your use cases.

You might be interested in http://mail.zope.org/pipermail/zope3-users/ 
2006-July/003950.html and ff., if you didn't read it already, to  
clarify our/Jim's concept of when to use what kind of relationship tool.


Gary
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users