Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Fix the failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 19, 2010
1 parent f861479 commit e6bb54b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/z3c/zrtresource/README.txt
Expand Up @@ -304,6 +304,14 @@ a named IZRTCommandFactory utility
... /* 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 {
Expand Down

0 comments on commit e6bb54b

Please sign in to comment.