Log message for revision 41047:
  Also work when objectValues() returns a tuple.
  

Changed:
  U   CMF/trunk/GenericSetup/utils.py

-=-
Modified: CMF/trunk/GenericSetup/utils.py
===================================================================
--- CMF/trunk/GenericSetup/utils.py     2005-12-28 02:52:06 UTC (rev 41046)
+++ CMF/trunk/GenericSetup/utils.py     2005-12-28 19:29:29 UTC (rev 41047)
@@ -518,6 +518,7 @@
         fragment = self._doc.createDocumentFragment()
         objects = self.context.objectValues()
         if not IOrderedContainer.providedBy(self.context):
+            objects = list(objects)
             objects.sort(lambda x,y: cmp(x.getId(), y.getId()))
         for obj in objects:
             exporter = zapi.queryMultiAdapter((obj, self.environ), INode)

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to