[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/rotterdam/xmlobject.py dont regurn more than 1000 subobjects in xml tree

Bernd Dorn bernd.dorn at lovelysystems.com
Thu Apr 5 08:54:45 EDT 2007


Log message for revision 74020:
  dont regurn more than 1000 subobjects in xml tree

Changed:
  U   Zope3/trunk/src/zope/app/rotterdam/xmlobject.py

-=-
Modified: Zope3/trunk/src/zope/app/rotterdam/xmlobject.py
===================================================================
--- Zope3/trunk/src/zope/app/rotterdam/xmlobject.py	2007-04-05 12:46:25 UTC (rev 74019)
+++ Zope3/trunk/src/zope/app/rotterdam/xmlobject.py	2007-04-05 12:54:45 UTC (rev 74020)
@@ -175,6 +175,8 @@
             subItems = []
             if IReadContainer.providedBy(item):
                 keys = list(item.keys())
+                if len(keys) >= 1000:
+                    keys = []
             else:
                 keys = []
 



More information about the Zope3-Checkins mailing list