source: WAeUP_SRP/trunk/skins/waeup_directory/getWAeUPGroups.py @ 2210

Last change on this file since 2210 was 1945, checked in by joachim, 17 years ago

fix search members

  • Property svn:keywords set to Id
File size: 258 bytes
Line 
1##parameters=key=None
2# $Id: getWAeUPGroups.py 1945 2007-06-22 13:47:42Z joachim $
3"""
4Return the groups as an vocabulary
5
6"""
7groups = context.portal_directories.groups.searchEntries(group='*')
8if key is None:
9    return [(g,g) for g in groups]
10if key in groups:
11    return key
12return "unknown Group %s" % key
Note: See TracBrowser for help on using the repository browser.