source: WAeUP_SRP/trunk/skins/waeup_directory/getGroups.py @ 1944

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

add searching for groups in member_search, interswitch payment updates

  • Property svn:keywords set to Id
File size: 258 bytes
Line 
1##parameters=key=None
2# $Id: getGroups.py 1944 2007-06-22 07:44:54Z 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.