[Checkins] SVN: z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt Fix the failing test.

Marius Gedminas marius at pov.lt
Sun Dec 19 15:44:44 EST 2010


Log message for revision 119012:
  Fix the failing test.
  
  

Changed:
  U   z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt

-=-
Modified: z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt
===================================================================
--- z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt	2010-12-19 20:34:16 UTC (rev 119011)
+++ z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt	2010-12-19 20:44:44 UTC (rev 119012)
@@ -304,6 +304,14 @@
   ... /* zrt-replace: "../img2" "++resource++/img" */
   ... ''')
 
+We have to recreate the ZRTFileResourceFactory to reload the changed file
+contents (don't worry -- in real life Zope creates these anew for every
+request, since resources are actually registered as IResourceFactoryFactory
+utilities).
+
+  >>> cssFactory = ZRTFileResourceFactory(fn, None, 'site.css')
+  >>> css = cssFactory(TestRequest())
+
   >>> print css.GET()
   /* oh, and we're testing that when the file changes, it is reloaded */
   h1 {



More information about the checkins mailing list