[Zope-CVS] SVN: book/trunk/resource/ Sample code for the resource
chapter.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Aug 16 21:15:16 EDT 2004
Log message for revision 27161:
Sample code for the resource chapter.
Changed:
A book/trunk/resource/
A book/trunk/resource/__init__.py
A book/trunk/resource/configure.zcml
A book/trunk/resource/img.png
A book/trunk/resource/resource.txt
-=-
Added: book/trunk/resource/__init__.py
===================================================================
--- book/trunk/resource/__init__.py 2004-08-17 00:03:35 UTC (rev 27160)
+++ book/trunk/resource/__init__.py 2004-08-17 01:15:16 UTC (rev 27161)
@@ -0,0 +1 @@
+# Make directory a package.
Added: book/trunk/resource/configure.zcml
===================================================================
--- book/trunk/resource/configure.zcml 2004-08-17 00:03:35 UTC (rev 27160)
+++ book/trunk/resource/configure.zcml 2004-08-17 01:15:16 UTC (rev 27161)
@@ -0,0 +1,20 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ i18n_domain="resource">
+
+ <browser:resource
+ name="resource.txt"
+ file="resource.txt"
+ layer="default" />
+
+ <browser:resource
+ name="img.png"
+ image="img.png"
+ permission="zope.ManageContent" />
+
+ <browser:resourceDirectory
+ name="resources"
+ directory="../resource" />
+
+</configure>
Added: book/trunk/resource/img.png
===================================================================
(Binary files differ)
Property changes on: book/trunk/resource/img.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: book/trunk/resource/resource.txt
===================================================================
--- book/trunk/resource/resource.txt 2004-08-17 00:03:35 UTC (rev 27160)
+++ book/trunk/resource/resource.txt 2004-08-17 01:15:16 UTC (rev 27161)
@@ -0,0 +1 @@
+Hello, I am a Zope 3 Resource Component!
\ No newline at end of file
More information about the Zope-CVS
mailing list