[Erp5-report] r17542 - /erp5/trunk/products/ERP5/tests/testGeographicalAddress.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 12 18:58:28 CET 2007


Author: yo
Date: Mon Nov 12 18:58:27 2007
New Revision: 17542

URL: http://svn.erp5.org?rev=17542&view=rev
Log:
Flush cache after creating a script.

Modified:
    erp5/trunk/products/ERP5/tests/testGeographicalAddress.py

Modified: erp5/trunk/products/ERP5/tests/testGeographicalAddress.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testGeographicalAddress.py?rev=17542&r1=17541&r2=17542&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testGeographicalAddress.py (original)
+++ erp5/trunk/products/ERP5/tests/testGeographicalAddress.py Mon Nov 12 18:58:27 2007
@@ -170,6 +170,9 @@
        (context.getStreetAddress(),
         context.getZipCode(), context.getCity())
 """)
+    # Flush the cache because _getTypeBasedMethod caches the result,
+    # so that script will not be used.
+    self.getPortal().portal_caches.clearCache(cache_factory_list=('erp5_content_long',))
   
   def stepCheckAddressAsTextScript(self, sequence=None,
                                    sequence_list=None, **kw):




More information about the Erp5-report mailing list