changeset 4765:3ffc3eb7f265

Groups2009: @rtype and @return tags were added for the BackendManager.membergroups and the GroupManager.membergroups methods.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Tue, 26 May 2009 12:58:50 +0200
parents a104935ac05c
children c198eff7b345
files MoinMoin/groups/__init__.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/groups/__init__.py	Mon May 25 23:04:46 2009 +0200
+++ b/MoinMoin/groups/__init__.py	Tue May 26 12:58:50 2009 +0200
@@ -53,6 +53,8 @@
     def membergroups(self, member):
         """
         List all groups where member is a member of.
+        @rtype: list of unicode strings
+        @return: list of group names in which member takes part in
         """
         return [group_name for group_name in self
                          if member in self[group_name]]
@@ -105,6 +107,8 @@
     def membergroups(self, member):
         """
         List all groups where member is a member of.
+        @rtype: list of unicode strings
+        @return: list of group names in which member takes part in
         """
         return [group_name for group_name in self
                          if member in self[group_name]]