Re: [ZIZope] PloneLDAP modificare attributo email dopo importazione

"Vito Falco" <[email protected]> Wed, 13 Feb 2008 12:57:40 +0100
Newsgroups gmane.comp.web.zope.italian
Message-ID <[email protected]>
--===============1125063700==
Content-Type: multipart/alternative; 
	boundary="----=_Part_50740_1081849.1202903860751"

------=_Part_50740_1081849.1202903860751
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Questa =E8 la pagina di riepilogo... devi vedere il pagetemplate del dettag=
lio
della scheda.

V.

Il 13/02/08, Fabrizio G. V. <[email protected]> ha scritto:
>
> On Wed, 13 Feb 2008 12:37:34 +0100
> "Vito Falco" <[email protected]> wrote:
>
> > Ok,
> > quando visualizzi la scheda dell'utente via Plone quale oggetto viene
> > richiamato?
> > Cio=E8, mi dici l'url che appare?
> >
> > V.
>
> L'url e`
>
> <nome-sito>/Members/member_search_results
>
> F.
>
> > Il 13/02/08, Fabrizio G. V. <[email protected]> ha scritto:
> > >
> > > On Wed, 13 Feb 2008 12:17:31 +0100
> > > "Vito Falco" <[email protected]> wrote:
> > >
> > > > Ciao,
> > > > ho dato un'occhiata sul mio plone 2.5.5 e c'=E8 un bello scriptino
> > > > python che invia i "feedback" (ovvero quando un utente anonimo
> > > > clicca sulla scheda dell'utente e spedisce un messaggio):
> > > > /portal_skins/plone_form_scripts/send_feedback
> > > >
> > > > Troverai questa riga che sembra fare al caso tuo:
> > > >
> > > > send_to_address =3D mtool.getMemberById(author).getProperty('email'=
)
> > > >
> > > > io azzarderi a fare un semplice concatenamento aggiungendo
> > > > @dominio.com ;-)
> > > >
> > > > Vito
> > >
> > > Grazie, si, in effetti per ``correggere`` il To: andrebbe piu` che
> > > bene, ma questo e` un problema secondario (come ti ho fatto notare
> > > nella mail precedente).
> > >
> > > Grazie per l'aiuto,
> > > Fabrizio.
> > >
> > >
> > > > Il 13/02/08, Fabrizio G. V. <[email protected]> ha scritto:
> > > > >
> > > > > On Wed, 13 Feb 2008 11:35:24 +0100
> > > > > Fabrizio Reale <[email protected]> wrote:
> > > > >
> > > > > > Alle mercoled=EC 13 febbraio 2008, Fabrizio G. V. ha scritto:
> > > > > > > 2008/2/11, Fabrizio Reale <[email protected]>:
> > > > > > > > Alle luned=EC 11 febbraio 2008, Fabrizio G. V. ha scritto:
> > > > > > > > > > Non =E8 direttamente possibile da ZMI.
> > > > > > > > > > Non ti conviene mettere il dominio nel campo mail di
> > > > > > > > > > LDAP?
> > > > > > > > > >
> > > > > > > > > > Fabry
> > > > > > > > >
> > > > > > > > > Grazie gentile omonimo :)
> > > > > > > > >
> > > > > > > > > No, purtroppo non mi e` possibile.
> > > > > > > > > Si potrebbe risolvere mediante un piccolo script,
> > > > > > > > > oppure? Qualcuno a qualche idea?
> > > > > > > >
> > > > > > > > Spiega bene la tua situazione e quello che vuoi ottenere.
> > > > > > > >
> > > > > > > > Fabry
> > > > > > >
> > > > > > > Mi scuso per il "ritardo" ma sono stato fuori.
> > > > > > >
> > > > > > > In pratica nell'attributo mail di LDAP manca @dominio.com e
> > > > > > > dovrei riuscire in qualche modo (se possibile) ad
> > > > > > > aggiungerlo "da zope". Ho gia` provato dalla ZMI quando
> > > > > > > faccio il mapping degli attributi LDAP - ZOPE ad aggiungere
> > > > > > > in svariati modi la stringa @dominio.com (ed *ovviamente*
> > > > > > > non funge :) ).
> > > > > > >
> > > > > > > Volevo sapere se magari qualcuno sa come potrebbe risolvere
> > > > > > > questa cosa (magari tramite uno script).
> > > > > >
> > > > > > Dipende da dove vuoi usarlo.
> > > > > > Applicarlo in modo globale potrebbe essere un po' impegnativo
> > > > > > (se usi gli utenti standard di Plone), mentre metterlo solo
> > > > > > dove ti serve (per esempio quando invii veramente un'email)
> > > > > > pu=F2 essere fattibile e basta modificare lo specifico template=
.
> > > > > >
> > > > > > Fabry
> > > > > >
> > > > >
> > > > > Mh, in pratica mi servirebbe solo aggiungerlo nelle proprieta`
> > > > > dell'utente (quindi se qualcuno effettua una ricerca e visita il
> > > > > profilo di un utente nel campo mail dovra` vedere
> > > > > <email>[email protected].
> > > > >
> > > > > Forse successivamente ci sara` bisogno anche di aggiungere
> > > > > @dominio.com anche quando si invia una mail (al `To:` per
> > > > > intenderci).
> > > > >
> > > > > Quindi, come potrei fare ? :)
> > > > >
> > > > > Ciao,
> > > > >
> > > > > Fabrizio.
> > > > >
> > > > > _______________________________________________
> > > > > Zope mailing list
> > > > > [email protected]
> > > > > http://lists.zope.it/cgi-bin/mailman/listinfo/zope
> > > > >
> > > > >
> > >
> > > _______________________________________________
> > > Zope mailing list
> > > [email protected]
> > > http://lists.zope.it/cgi-bin/mailman/listinfo/zope
> > >
> > >
>
> _______________________________________________
> Zope mailing list
> [email protected]
> http://lists.zope.it/cgi-bin/mailman/listinfo/zope
>
>

------=_Part_50740_1081849.1202903860751
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Questa =E8 la pagina di riepilogo... devi vedere il pagetemplate del dettag=
lio della scheda.<br><br>V.<br><br><div><span class=3D"gmail_quote">Il 13/0=
2/08, <b class=3D"gmail_sendername">Fabrizio G. V.</b> &lt;<a href=3D"mailt=
o:[email protected]">[email protected]</a>&gt; ha scritto:</span><blockquote =
class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); m=
argin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 13 Feb 2008 12:37:34 +0100<br>&quot;Vito Falco&quot; &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; wrote:<br><br>&gt;=
 Ok,<br>&gt; quando visualizzi la scheda dell&#39;utente via Plone quale og=
getto viene<br>
&gt; richiamato?<br>&gt; Cio=E8, mi dici l&#39;url che appare?<br>&gt;<br>&=
gt; V.<br><br>L&#39;url e`<br><br>&lt;nome-sito&gt;/Members/member_search_r=
esults<br><br>F.<br><br>&gt; Il 13/02/08, Fabrizio G. V. &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt; ha scritto:<br>
&gt; &gt;<br>&gt; &gt; On Wed, 13 Feb 2008 12:17:31 +0100<br>&gt; &gt; &quo=
t;Vito Falco&quot; &lt;<a href=3D"mailto:[email protected]">vitofalco@gma=
il.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; &gt; Ciao,<br>&gt; &gt; &gt=
; ho dato un&#39;occhiata sul mio plone 2.5.5 e c&#39;=E8 un bello scriptin=
o<br>
&gt; &gt; &gt; python che invia i &quot;feedback&quot; (ovvero quando un ut=
ente anonimo<br>&gt; &gt; &gt; clicca sulla scheda dell&#39;utente e spedis=
ce un messaggio):<br>&gt; &gt; &gt; /portal_skins/plone_form_scripts/send_f=
eedback<br>
&gt; &gt; &gt;<br>&gt; &gt; &gt; Troverai questa riga che sembra fare al ca=
so tuo:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; send_to_address =3D mtool.getMe=
mberById(author).getProperty(&#39;email&#39;)<br>&gt; &gt; &gt;<br>&gt; &gt=
; &gt; io azzarderi a fare un semplice concatenamento aggiungendo<br>
&gt; &gt; &gt; @<a href=3D"http://dominio.com">dominio.com</a> ;-)<br>&gt; =
&gt; &gt;<br>&gt; &gt; &gt; Vito<br>&gt; &gt;<br>&gt; &gt; Grazie, si, in e=
ffetti per ``correggere`` il To: andrebbe piu` che<br>&gt; &gt; bene, ma qu=
esto e` un problema secondario (come ti ho fatto notare<br>
&gt; &gt; nella mail precedente).<br>&gt; &gt;<br>&gt; &gt; Grazie per l&#3=
9;aiuto,<br>&gt; &gt; Fabrizio.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt;=
 Il 13/02/08, Fabrizio G. V. &lt;<a href=3D"mailto:[email protected]">vntfrz=
@gmail.com</a>&gt; ha scritto:<br>
&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; On Wed, 13 Feb 2008 11:35:24 +01=
00<br>&gt; &gt; &gt; &gt; Fabrizio Reale &lt;<a href=3D"mailto:fabrizio.rea=
[email protected]">[email protected]</a>&gt; wrote:<br>&gt; &gt; &g=
t; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Alle mercoled=EC 13 febbraio 2008, Fabrizio G. V. =
ha scritto:<br>&gt; &gt; &gt; &gt; &gt; &gt; 2008/2/11, Fabrizio Reale &lt;=
<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt;:<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Alle luned=EC 11 febbraio 2008, Fabrizio=
 G. V. ha scritto:<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Non =E8 =
direttamente possibile da ZMI.<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &=
gt; Non ti conviene mettere il dominio nel campo mail di<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; LDAP?<br>&gt; &gt; &gt; &gt; &=
gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Fab=
ry<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &=
gt; &gt; &gt; Grazie gentile omonimo :)<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &g=
t; &gt; No, purtroppo non mi e` possibile.<br>&gt; &gt; &gt; &gt; &gt; &gt;=
 &gt; &gt; Si potrebbe risolvere mediante un piccolo script,<br>&gt; &gt; &=
gt; &gt; &gt; &gt; &gt; &gt; oppure? Qualcuno a qualche idea?<br>
&gt; &gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; Sp=
iega bene la tua situazione e quello che vuoi ottenere.<br>&gt; &gt; &gt; &=
gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &gt; &gt; Fabry<br>&gt; &gt;=
 &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &gt; Mi scuso per il &quot;ritardo&quot; ma sono s=
tato fuori.<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; &g=
t; In pratica nell&#39;attributo mail di LDAP manca @<a href=3D"http://domi=
nio.com">dominio.com</a> e<br>
&gt; &gt; &gt; &gt; &gt; &gt; dovrei riuscire in qualche modo (se possibile=
) ad<br>&gt; &gt; &gt; &gt; &gt; &gt; aggiungerlo &quot;da zope&quot;. Ho g=
ia` provato dalla ZMI quando<br>&gt; &gt; &gt; &gt; &gt; &gt; faccio il map=
ping degli attributi LDAP - ZOPE ad aggiungere<br>
&gt; &gt; &gt; &gt; &gt; &gt; in svariati modi la stringa @<a href=3D"http:=
//dominio.com">dominio.com</a> (ed *ovviamente*<br>&gt; &gt; &gt; &gt; &gt;=
 &gt; non funge :) ).<br>&gt; &gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &g=
t; &gt; &gt; Volevo sapere se magari qualcuno sa come potrebbe risolvere<br=
>
&gt; &gt; &gt; &gt; &gt; &gt; questa cosa (magari tramite uno script).<br>&=
gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Dipende da dove vuoi us=
arlo.<br>&gt; &gt; &gt; &gt; &gt; Applicarlo in modo globale potrebbe esser=
e un po&#39; impegnativo<br>
&gt; &gt; &gt; &gt; &gt; (se usi gli utenti standard di Plone), mentre mett=
erlo solo<br>&gt; &gt; &gt; &gt; &gt; dove ti serve (per esempio quando inv=
ii veramente un&#39;email)<br>&gt; &gt; &gt; &gt; &gt; pu=F2 essere fattibi=
le e basta modificare lo specifico template.<br>
&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Fabry<br>&gt; &gt; &gt=
; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Mh, in pratica mi=
 servirebbe solo aggiungerlo nelle proprieta`<br>&gt; &gt; &gt; &gt; dell&#=
39;utente (quindi se qualcuno effettua una ricerca e visita il<br>
&gt; &gt; &gt; &gt; profilo di un utente nel campo mail dovra` vedere<br>&g=
t; &gt; &gt; &gt; &lt;email&gt;+@<a href=3D"http://dominio.com">dominio.com=
</a>.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Forse successivamente c=
i sara` bisogno anche di aggiungere<br>
&gt; &gt; &gt; &gt; @<a href=3D"http://dominio.com">dominio.com</a> anche q=
uando si invia una mail (al `To:` per<br>&gt; &gt; &gt; &gt; intenderci).<b=
r>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Quindi, come potrei fare ? :)<=
br>
&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Ciao,<br>&gt; &gt; &gt; &gt;<br>=
&gt; &gt; &gt; &gt; Fabrizio.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;=
 _______________________________________________<br>&gt; &gt; &gt; &gt; Zop=
e mailing list<br>
&gt; &gt; &gt; &gt; <a href=3D"mailto:[email protected]">[email protected]=
t</a><br>&gt; &gt; &gt; &gt; <a href=3D"http://lists.zope.it/cgi-bin/mailma=
n/listinfo/zope">http://lists.zope.it/cgi-bin/mailman/listinfo/zope</a><br>
&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ______=
_________________________________________<br>&gt; &gt; Zope mailing list<br=
>&gt; &gt; <a href=3D"mailto:[email protected]">[email protected]</a><br>
&gt; &gt; <a href=3D"http://lists.zope.it/cgi-bin/mailman/listinfo/zope">ht=
tp://lists.zope.it/cgi-bin/mailman/listinfo/zope</a><br>&gt; &gt;<br>&gt; &=
gt;<br><br>_______________________________________________<br>Zope mailing =
list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br><a href=3D"=
http://lists.zope.it/cgi-bin/mailman/listinfo/zope">http://lists.zope.it/cg=
i-bin/mailman/listinfo/zope</a><br><br></blockquote></div><br>

------=_Part_50740_1081849.1202903860751--

--===============1125063700==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

_______________________________________________
Zope mailing list
[email protected]
http://lists.zope.it/cgi-bin/mailman/listinfo/zope

--===============1125063700==--