annotate MoinMoin/groups/backends/__init__.py @ 4796:7dd5d15de911

Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Tue, 09 Jun 2009 23:35:01 +0200
parents 3f9147c23d9c
children 4539a7956eac
rev   line source
4796
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
1 # -*- coding: iso-8859-1 -*-
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
2 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
3 MoinMoin - base classes for group backends.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
4
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
5 @copyright: 2009 MoinMoin:DmitrijsMilajevs
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
6 @license: GPL, see COPYING for details
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
7 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
8
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
9 class BaseGroup(object):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
10
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
11 def __init__(self, request, name, backend):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
12 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
13 Initialize a group.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
14
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
15 @param request
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
16 @param name: moin group name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
17 @backend: backend object which created this object
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
18
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
19 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
20 self.request = request
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
21 self.name = name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
22 self.backend = backend
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
23
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
24 self.to_backend_name = backend.to_backend_name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
25 self.to_group_name = backend.to_group_name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
26
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
27 self._load_group()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
28
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
29 def _load_group(self):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
30 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
31 Fill in self.members, self.member_groups with data retrieved from the backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
32 member_groups are moin group names.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
33 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
34 raise NotImplementedError()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
35
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
36 def _contains(self, member, processed_groups):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
37 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
38 First check if <member> is part of this group and then check
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
39 for every subgroup in this group.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
40
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
41 <processed_groups> is needed to avoid infinite recursion, if
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
42 groups are defined recursively.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
43
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
44 @param member: member name [unicode]
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
45 @param processed_groups: groups which were checked for containment before [set]
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
46 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
47 processed_groups.add(self.name)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
48
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
49 if member in self.members:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
50 return True
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
51 else:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
52 groups = self.request.groups
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
53 for group_name in self.member_groups:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
54 if group_name not in processed_groups and groups[group_name]._contains(member, processed_groups):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
55 return True
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
56
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
57 return False
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
58
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
59 def __contains__(self, member):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
60 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
61 Check if <member> is defined in this group. Checks also for subgroups.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
62 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
63 return self._contains(member, set())
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
64
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
65 def _iter(self, yielded_members, processed_groups):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
66 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
67 Iterate first over members of this group, then over subgroups of this group.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
68
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
69 <yielded_members> and <processed_groups> are needed to avoid infinite recursion.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
70 This can happen if there are two groups like these:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
71 OneGroup: Something, OtherGroup
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
72 OtherGroup: OneGroup, SomethingOther
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
73
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
74 @param yielded_members: members which have been already yielded before [set]
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
75 @param processed_groups: group names which have been iterated before [set]
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
76 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
77 processed_groups.add(self.name)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
78
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
79 for member in self.members:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
80 if member not in yielded_members:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
81 yield member
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
82 yielded_members.add(member)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
83
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
84 groups = self.request.groups
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
85 for group_name in self.member_groups:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
86 if group_name not in processed_groups:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
87 for member in groups[group_name]._iter(yielded_members, processed_groups):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
88 if member not in yielded_members:
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
89 yield member
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
90 yielded_members.add(member)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
91
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
92
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
93 def __iter__(self):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
94 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
95 Iterate over members of this group. Iterates also over subgroups if any.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
96 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
97 return self._iter(set(), set())
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
98
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
99 def __repr__(self):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
100 return "<%s name=%s members=%s member_groups=%s>" % (self.__class__,
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
101 self.name,
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
102 self.members,
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
103 self.member_groups)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
104
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
105
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
106 class BaseBackend(object):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
107
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
108 def __init__(self, request):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
109 self.request = request
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
110
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
111 def __contains__(self, group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
112 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
113 Check if a group called <group_name> is available in this backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
114 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
115 return self._exists_group(group_name)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
116
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
117 def __iter__(self):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
118 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
119 Iterate over group names of the groups defined in this backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
120
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
121 @return: moin group names
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
122 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
123 backend_group_names = self._get_group_names()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
124 return (self.to_group_name(backend_group_name) for backend_group_name in backend_group_names)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
125
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
126 def __getitem__(self, group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
127 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
128 Get a group by its moin group name.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
129 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
130 return self._get_group(group_name)
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
131
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
132 # These methods should be overridden in children classes.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
133 def to_backend_name(self, group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
134 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
135 A function mapping the moin group name to the backend group name.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
136 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
137 return group_name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
138
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
139 def to_group_name(self, backend_group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
140 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
141 A function mapping the backend group name to the moin group name.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
142 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
143 return backend_group_name
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
144
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
145 def _exists_group(self, group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
146 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
147 Check if the group <group_name> is defined in the backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
148 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
149 raise NotImplementedError()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
150
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
151 def _get_group(self, group_name):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
152 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
153 Retrieve a <group_name> group members from the backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
154
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
155 @return: a group with retrieved members. [Group]
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
156 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
157 raise NotImplementedError()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
158
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
159 def _get_group_names(self):
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
160 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
161 Retrieve moin group names stored in the backend.
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
162 """
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
163 raise NotImplementedError()
7dd5d15de911 Groups2009: BaseGroup and BaseBackend initial import. wiki_group.Group and wiki_group.Backend inherit from those classes. TestWikiGroupNameMapping is added to check group name mapping routines.
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4776
diff changeset
164