[Zope3-checkins]
CVS: Zope3/src/zope/app/publisher/browser/tests/testfiles
- test.gif:1.1 test.pt:1.1 test.txt:1.1 test2.pt:1.1
test3.pt:1.1 testresource.pt:1.1 testusage.pt:1.1
Philipp von Weitershausen
philikon at philikon.de
Mon Aug 11 11:58:28 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/publisher/browser/tests/testfiles
In directory cvs.zope.org:/tmp/cvs-serv28048/browser/tests/testfiles
Added Files:
test.gif test.pt test.txt test2.pt test3.pt testresource.pt
testusage.pt
Log Message:
Added implementations and tests for
a) PageTemplateResource
This allows resources to be page templates. They will not have any context,
container nor view variable in their namespace. My current and only use
case for them right now is to provide i18n'd, markup-based resources.
You may add one using::
<browser:resource name="foobar.html" template="foobar.pt" />
b) DirectoryResource
This is a browser resource that represents a file system directory. It
uses a simple mapping based on file extensions to delegate to either
FileResourceFactory, ImageResourceFactory or PageTemplateResourceFactory.
You may add one using::
<browser:resourceDirectory name="myresdir" directory="myresdir" />
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/test.gif ===
<Binary-ish file>
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/test.pt ===
<html><body><p>test</p></body></html>
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/test.txt ===
test
data
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/test2.pt ===
<html><body><p tal:content="view/data">test</p></body></html>
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/test3.pt ===
<html><body><p tal:content="view/action">test</p></body></html>
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/testresource.pt ===
<html><body tal:content="request/test_data"></body></html>
=== Added File Zope3/src/zope/app/publisher/browser/tests/testfiles/testusage.pt ===
<tal:usage replace="usage" />
More information about the Zope3-Checkins
mailing list