Last change
on this file since 11156 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 | """ |
---|
4 | Return the groups as an vocabulary |
---|
5 | |
---|
6 | """ |
---|
7 | groups = context.portal_directories.groups.searchEntries(group='*') |
---|
8 | if key is None: |
---|
9 | return [(g,g) for g in groups] |
---|
10 | if key in groups: |
---|
11 | return key |
---|
12 | return "unknown Group %s" % key |
---|
Note: See
TracBrowser for help on using the repository browser.