halvar.at bcom Python Tools Plone Zope Visual Basic Programmierung SW3 PC Computer Netzwerk Linux Windows Shop

Skip to content

Gerolds Homepage

Sections
Personal tools
You are here: Home Zope/Plone Codeschnipsel Plone - alle Mitglieder auslesen
Document Actions

Plone - alle Mitglieder auslesen

Zeigt auf, wie man in Plone über ein Python-Script alle Mitglieder auslesen kann.

## Script (Python) "get_members"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
ms = container.portal_membership

retlist = []
members = ms.searchForMembers()
if members:
    for member in members:
        new = {"username": member.getUserName()}
        new["fullname"] = member.getProperty("fullname")
        retlist.append(new)

return retlist
 

Powered by Plone   Powered by Bcom   Powered by Gentoo-Linux

Diese Seite erfüllt evt. :-) folgende Standards: