Log message for revision 108779:
  Sam suggested tweak to DocumentTemplate to make sure TemplateDict is not 
holding a reference to the ResultSet. Preliminary testing shows memory usage 
stabilizes, but more testing is needed to verify (this was tested without any 
of the changes to Results.py which were introduced in this branch.)

Changed:
  U   
Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py

-=-
Modified: 
Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py
===================================================================
--- 
Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py    
    2010-02-04 22:45:27 UTC (rev 108778)
+++ 
Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py    
    2010-02-05 00:17:56 UTC (rev 108779)
@@ -710,8 +710,8 @@
 
         finally:
             if cache: pop()
-            pop()
-
+            pop() #pop the vars...right??
+        del(vars.items)  # just in case... vars must die!
         return result
 
     def sort_sequence(self, sequence, md):

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to