[Setup] Form prior redirection

2011-03-17 Thread Denis Bitouzé
Hi, in a Plone 3.1 site, I have created a form with PloneFormGen and I'd like the user to be automatically redirected to its URL (let say http://my_site/forms/my_join_form) when he visits the http://my_site/join_form URL. I noticed that it is possible to customize the join_form Page Template and

Re: [Setup] Form prior redirection

2011-03-17 Thread Denis Bitouzé
Le jeudi 17/03/11 à 08h55, Bastien Gauthier gbast...@commune.sambreville.be a écrit : You need to do this in the TAL of you PageTemplate, do not use actions and validation of the FormController... So, customizing join_form and adding something like : [...] Should work ;-) Indeed!

Re: [Setup] Form prior redirection

2011-03-17 Thread Bastien Gauthier
In fact, while doing metal:use-macro=here/main_template/macros/master, you will have some default value that come from the global_defines called in the main_template. Well, to be short, doing this will give you some default value like portal, portal_url, IsAnon, ... You can see all these

Re: [Setup] Form prior redirection

2011-03-17 Thread Bastien Gauthier
If you do not add the portal_url, you could have some problems if you url is actually http://my_ip_address:8080/myplonesite;, this would redirect to http://my_ip_address:8080/my_form; wich is not the correct one... What you wrote with the portal_url is wrong, that is why the label portal_url

Re: [Setup] Form prior redirection

2011-03-17 Thread Denis Bitouzé
Le jeudi 17/03/11 à 10h24, Bastien Gauthier gbast...@commune.sambreville.be a écrit : If you do not add the portal_url, you could have some problems if you url is actually http://my_ip_address:8080/myplonesite;, this would redirect to http://my_ip_address:8080/my_form; wich is not the correct

Re: [Setup] Installing collective.contacts

2011-03-17 Thread joe43wv
I tried loading the Advanced Query in the products folder just like the site said and am still receiving the same error message. -- View this message in context: http://plone.293351.n2.nabble.com/Installing-collective-contacts-tp6088915p6180721.html Sent from the Installation, Setup, Upgrades

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

2011-03-17 Thread Denis Bitouzé
Hi, is there a better way than loops to get the intersection of (2) groups? Thanks. -- Denis ___ Setup mailing list Setup@lists.plone.org https://lists.plone.org/mailman/listinfo/setup

Re: [Setup] Form prior redirection

2011-03-17 Thread Raphael Ritz
On 3/17/11 8:50 AM, Denis Bitouzé wrote: Hi, in a Plone 3.1 site, I have created a form with PloneFormGen and I'd like the user to be automatically redirected to its URL (let say http://my_site/forms/my_join_form) when he visits the http://my_site/join_form URL. I noticed that it is possible

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] Form prior redirection

2011-03-17 Thread Denis Bitouzé
Le jeudi 17/03/11 à 14h31, Raphael Ritz r.r...@biologie.hu-berlin.de a écrit : In a default Plone 'join' is handled as a user action. It is defined on the actions tool ('portal_actions'). If you go to the ZMI - portal_actions and select the 'user' category you will find under 'join' the

[Setup] Plone connecting to a Samba share?

2011-03-17 Thread dwith
Is it possible to set up an individual Plone page--in addition to others on a Plone intranet--that views an existing samba share folder structure? Or is it necessary to import every item/object out of the samba share into Plone/ZODB? I would like to enable users to create metadata in the form of

Re: [Setup] Form prior redirection

2011-03-17 Thread Raphael Ritz
On 3/17/11 3:51 PM, Denis Bitouzé wrote: Le jeudi 17/03/11 à 14h31, Raphael Ritzr.r...@biologie.hu-berlin.de a écrit : In a default Plone 'join' is handled as a user action. It is defined on the actions tool ('portal_actions'). If you go to the ZMI - portal_actions and select the 'user'

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