Re: [Setup] Best way to get the intersection of (2) groups

2011-03-17 Thread Bastien Gauthier
Re Denis ;-) Depending on your usecase, look at the set in python. If you are playing with the ids of your groups, look at the function 'intersection' +++ BASTIEN Gauthier Service Informatique - Administration Communale de Sambreville 071/260.247 http://www.sambreville.be -Message

Re: [Setup] Best way to get the intersection of (2) groups

2011-03-17 Thread Raphael Ritz
On 3/17/11 2:17 PM, Denis Bitouzé wrote: Hi, is there a better way than loops to get the intersection of (2) groups? Assuming you have a list of ids or objects for each group I would cast them to a set and take the intersection. See, e.g,

Re: [Setup] Best way to get the intersection of (2) groups

2011-03-17 Thread Denis Bitouzé
Unfortunately, I can't use (frozen)set (I'm not hosting the Plone instance): ImportError: import of Set from sets is unauthorized. You are not allowed to access 'Set' in this context Anyway: 1. loops are OK :) 2. thank you, Bastian and Raphael. -- Denis

Re: [Setup] Best way to get the intersection of (2) groups

2011-03-17 Thread Raphael Ritz
On 3/17/11 3:07 PM, Denis Bitouzé wrote: Unfortunately, I can't use (frozen)set (I'm not hosting the Plone instance): ImportError: import of Set from sets is unauthorized. You are not allowed to access 'Set' in this context Are you restricted to doing all this in the browser/TTW/ZMI? Are you

Re: [Setup] Best way to get the intersection of (2) groups

2011-03-17 Thread Denis Bitouzé
Le jeudi 17/03/11 à 16h35, Raphael Ritz r.r...@biologie.hu-berlin.de a écrit : Are you restricted to doing all this in the browser/TTW/ZMI? Well, I don't know. Are you on Plone3? Yes. Here is the information provided by the hoster: * Plone 3.1.7 * CMF 2.1.1 * Zope (Zope