[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:44:57 EDT 2007


Log message for revision 74018:
  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:06:23 UTC (rev 74017)
+++ Zope3/trunk/src/zope/app/rotterdam/xmlobject.py	2007-04-05 12:44:56 UTC (rev 74018)
@@ -104,6 +104,10 @@
         # include the site manager
         keys.append(u'++etc++site')
 
+        # dont get children if we get more than 1000 objects
+        if len(keys)>=1000:
+            keys = [u'++etc++site']
+
         for name in keys:
 
             # Only include items we can traverse to



More information about the Checkins mailing list