changeset 2898:dd2226c7f5fe

fix wikidicts by overriding Group.update()
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 23 Oct 2007 16:55:01 +0200
parents 7f07db1306d1
children 5a3037bd131a
files MoinMoin/wikidicts.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikidicts.py	Tue Oct 23 00:37:23 2007 +0200
+++ b/MoinMoin/wikidicts.py	Tue Oct 23 16:55:01 2007 +0200
@@ -101,6 +101,9 @@
             member = match.group('member')
             self.addmember(member)
 
+    def update(self, members):
+        self.addmembers(members.keys())
+
     def __iter__(self):
         return iter(self._list)
 
@@ -123,7 +126,7 @@
         return self.has_key(member)
 
     def __repr__(self):
-        return "<Group name=%r items=%r>" % (self.name, self.keys())
+        return "<Group name=%r items=%r>" % (self.name, self._list)
 
 
 class DictDict: