changeset 1396:95f907618c53

fixes wikidicts crash triggered by a page 'WikiDict' being member of 'SystemPages*Group'
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Aug 2006 21:02:28 +0200
parents d1ceb31f3d02
children 3b527a26aa1f
files MoinMoin/wikidicts.py docs/CHANGES
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikidicts.py	Mon Aug 21 09:59:57 2006 +0200
+++ b/MoinMoin/wikidicts.py	Mon Aug 21 21:02:28 2006 +0200
@@ -296,7 +296,7 @@
         self.groupdict[groupname] = grp
 
     def hasgroup(self, groupname):
-        return self.dictdict.has_key(groupname)
+        return self.groupdict.has_key(groupname)
 
     def membergroups(self, member):
         """list all groups where member is a member of"""
--- a/docs/CHANGES	Mon Aug 21 09:59:57 2006 +0200
+++ b/docs/CHANGES	Mon Aug 21 21:02:28 2006 +0200
@@ -266,6 +266,8 @@
   * tuning:
     * more efficient locking code on POSIX platforms, we do much less I/O there now
     * removed most chmod calls in favour of a single os.umask call
+  * fixed a bad crash that happens (on ANY page!) when you put a *Dict page's
+    name as a member into a *Group page
   
 Version 1.5.4:
     HINT: read docs/README.migration.