1.1 --- a/ItemSupport.py Wed Nov 06 15:03:17 2013 +0100
1.2 +++ b/ItemSupport.py Wed Nov 06 17:22:48 2013 +0100
1.3 @@ -10,7 +10,6 @@
1.4 from MoinMoin.PageEditor import PageEditor
1.5 from MoinMoin.util import lock
1.6 from MoinSupport import getMetadata, getPagesForSearch
1.7 -import re
1.8 import os
1.9
1.10 # Content storage support.
2.1 --- a/MoinSupport.py Wed Nov 06 15:03:17 2013 +0100
2.2 +++ b/MoinSupport.py Wed Nov 06 17:22:48 2013 +0100
2.3 @@ -189,6 +189,12 @@
2.4 else:
2.5 return None
2.6
2.7 +def groupHasMember(request, groupname, username):
2.8 + if hasattr(request.dicts, "has_member"):
2.9 + return request.dicts.has_member(groupname, username)
2.10 + else:
2.11 + return username in request.groups.get(groupname, [])
2.12 +
2.13 # Searching-related functions.
2.14
2.15 def getPagesFromResults(result_pages, request):
3.1 --- a/README.txt Wed Nov 06 15:03:17 2013 +0100
3.2 +++ b/README.txt Wed Nov 06 17:22:48 2013 +0100
3.3 @@ -5,8 +5,7 @@
3.4 extensions. Some of the provided modules can be used independently of
3.5 MoinMoin, such as the ContentTypeSupport, DateSupport, GeneralSupport,
3.6 LocationSupport and ViewSupport modules which do not themselves import any
3.7 -MoinMoin functionality. The ItemSupport module only imports file-locking
3.8 -functionality from MoinMoin and could potentially be used independently.
3.9 +MoinMoin functionality.
3.10
3.11 Installation
3.12 ------------
3.13 @@ -69,6 +68,7 @@
3.14
3.15 * Moved ItemStore and related functionality into ItemSupport.
3.16 * Added support for subpage-based item stores.
3.17 + * Added groupHasMember from ApproveChanges.
3.18
3.19 New in MoinSupport 0.4.1 (Changes since MoinSupport 0.4)
3.20 --------------------------------------------------------