[Checkins]
SVN: grokcore.view/new/src/grokcore/view/ftests/staticdir/simple.py
Fix up static directory resource ftest
Philipp von Weitershausen
philikon at philikon.de
Sat Aug 2 10:12:37 EDT 2008
Log message for revision 89231:
Fix up static directory resource ftest
Changed:
U grokcore.view/new/src/grokcore/view/ftests/staticdir/simple.py
-=-
Modified: grokcore.view/new/src/grokcore/view/ftests/staticdir/simple.py
===================================================================
--- grokcore.view/new/src/grokcore/view/ftests/staticdir/simple.py 2008-08-02 14:09:54 UTC (rev 89230)
+++ grokcore.view/new/src/grokcore/view/ftests/staticdir/simple.py 2008-08-02 14:12:37 UTC (rev 89231)
@@ -5,7 +5,7 @@
>>> from zope.testbrowser.testing import Browser
>>> browser = Browser()
>>> browser.handleErrors = False
- >>> browser.open('http://localhost/@@/grok.ftests.staticdir.simple_fixture/'
+ >>> browser.open('http://localhost/@@/grokcore.view.ftests.staticdir.simple_fixture/'
... 'file.txt')
>>> print browser.contents
some text
@@ -14,19 +14,19 @@
to resources:
>>> root = getRootFolder()
- >>> from grok.ftests.staticdir.simple_fixture.ellie import Mammoth
+ >>> from grokcore.view.ftests.staticdir.simple_fixture.ellie import Mammoth
>>> root[u'ellie'] = Mammoth()
>>> browser.open('http://localhost/ellie')
>>> print browser.contents
<html>
<body>
- <a href="http://localhost/@@/grok.ftests.staticdir.simple_fixture/file.txt">Some text in a file</a>
+ <a href="http://localhost/@@/grokcore.view.ftests.staticdir.simple_fixture/file.txt">Some text in a file</a>
</body>
</html>
Static also means that page templates will not be interpreted:
- >>> browser.open('http://localhost/@@/grok.ftests.staticdir.simple_fixture/static.pt')
+ >>> browser.open('http://localhost/@@/grokcore.view.ftests.staticdir.simple_fixture/static.pt')
>>> print browser.contents
<html>
<body>
@@ -36,7 +36,7 @@
We also support subdirectories for resources:
- >>> browser.open('http://localhost/@@/grok.ftests.staticdir.simple_fixture/subdir/otherfile.txt')
+ >>> browser.open('http://localhost/@@/grokcore.view.ftests.staticdir.simple_fixture/subdir/otherfile.txt')
>>> print browser.contents
This is yet another file.
More information about the Checkins
mailing list