[CMF-checkins] CVS: CMF/CMFCollector - Collector.py:1.36
Ken Manheimer
klm@zope.com
Tue, 8 Oct 2002 11:50:29 -0400
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv27846
Modified Files:
Collector.py
Log Message:
Enable configurers to change the order of supporters and managers.
We were applying changes only if the sorted lists were different,
which deliberately ignored order changes. Stupid optimization, now
gone.
=== CMF/CMFCollector/Collector.py 1.35 => 1.36 ===
--- CMF/CMFCollector/Collector.py:1.35 Tue Jul 23 09:53:07 2002
+++ CMF/CMFCollector/Collector.py Tue Oct 8 11:50:28 2002
@@ -265,7 +265,7 @@
and (userid not in x)):
changes.append("Managers cannot de-enlist themselves")
x.append(userid)
- if util.sorted(self.managers) != util.sorted(x):
+ if self.managers != x:
changes.append("Managers")
self.managers = x
staff_changed = 1
@@ -273,7 +273,7 @@
if supporters is not None:
# XXX Vette supporters - they must exist, etc.
x = filter(None, supporters)
- if util.sorted(self.supporters) != util.sorted(x):
+ if self.supporters != x:
changes.append("Supporters")
self.supporters = x
staff_changed = 1