Hey!<div>I'm trying to understand if my idea of how to use the FilterExtent in zc.catalog (1.1.1) is</div><div>correct (and efficient). I'm also using hurry.query (0.9.3). My current understanding of</div><div>extents is: they can be used to perform a search on a subset of a catalog. For example,
</div><div>"give me all objects where attr1 is 'foo' but only for intids 5,6,7 and 10"</div><div><br> </div><div>Short version:</div><div>I have an extent of a large catalog. How do I make a search within this extent?
</div><div><br> </div><div><br> </div><div>Long version:</div><div>Basically, I have a few content components that can belong to several "networks".
</div><div><br> </div><div>My idea is to have an extent in each network. Adding a component to several </div><div>networks is simply a matter of subscribing to an added event, looking at the object's
</div><div>"networks" attribute and add it to each of the specified networks via the network's</div><div>extent.add method.</div><div><br> </div><div>>>> list(BigCatalog.refs
)</div><div>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]</div><div>>>> list(network1.extent.set)</div><div>[1, 2, 5]</div><div>>>> list(network2.extent.set)</div><div>[2, 3, 5, 6, 11]</div><div>
<br> </div><div>In turn, the members of my site can join these networks so I'd want an extent on</div><div>each principal too. This is to allow a kind of "subscription" to his networks. Also I'd want
</div><div>some filter capabilities where the user can somehow change settings for the filter</div><div>function, but I'll leave it for now..</div><div>Say, we have a member John, who's member of network1 & 2, his extent would then
</div><div>look like this (assuming he's not filtering anything from the networks):</div><div><br> </div><div>>>> IUserExtent(john).extent.set</div><div>[1, 2, 3, 5, 6, 11]</div>
<div><br> </div><div>SO, my main question now is, uhm, how do I actually make a search within a network's</div><div>extent? I mean, I could do a search on the big catalog and then make a union with the
</div><div>network's extent:</div><div><br> </div><div>>>> some_result & network1.extent</div><div>[1]</div><div><br> </div><div>...But was it really meant to be used like this? I see you can set the parent catalog on
</div><div>the extent but I'm still not sure how to use it.</div><div><br> </div><div>Regards</div><div>Jesper</div>