[Plone-IT] recuperare fullname di tutti i membri

Franco Carinato franco a carinato.net
Lun 28 Lug 2008 10:36:03 UTC


per recuperare il Fullname dato l'id dell'utente tempo fa avevo usato
una script tipo questo.. (ma non garantisco che sia l'ottimale.. )

ciao
fc


## Script (Python) "nome_completo"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=id='fc'
##title=Nome Completo
##
try:
  member = context.portal_membership.getMemberById(id)
  return member.getProperty('fullname', id)
except:
  return id


> On Monday 28 July 2008, Redbedbug wrote:
>> Suggestions?
>




Maggiori informazioni sulla lista Plone-IT