[Checkins] SVN: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/ Configure hurry.resource.publisher to serve the resources
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Sun Nov 14 09:50:29 EST 2010
Log message for revision 118404:
Configure hurry.resource.publisher to serve the resources
Changed:
U grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/debug.ini.in_tmpl
U grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/deploy.ini.in_tmpl
U grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/setup.py_tmpl
U grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl
-=-
Modified: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/debug.ini.in_tmpl
===================================================================
--- grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/debug.ini.in_tmpl 2010-11-14 14:40:48 UTC (rev 118403)
+++ grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/debug.ini.in_tmpl 2010-11-14 14:50:28 UTC (rev 118404)
@@ -6,7 +6,12 @@
host = $${:host}
port = $${:port}
-[pipeline:main]
+[composite:main]
+use = egg:Paste#urlmap
+/ = pipeline_grok
+/resources = resource_publisher
+
+[pipeline:pipeline_grok]
pipeline = accesslogging evalexception resource_injection grok
[filter:accesslogging]
@@ -17,11 +22,15 @@
[filter:resource_injection]
use = egg:hurry.resource#inject
+publisher_prefix = /resources
[app:grok]
use = egg:grokcore.startup#debug
exempt-exceptions = zope.security.interfaces.IUnauthorized
+[app:resource_publisher]
+use = egg:hurry.resource#publisher
+
# Logging configuration
[loggers]
Modified: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/deploy.ini.in_tmpl
===================================================================
--- grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/deploy.ini.in_tmpl 2010-11-14 14:40:48 UTC (rev 118403)
+++ grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/etc/deploy.ini.in_tmpl 2010-11-14 14:50:28 UTC (rev 118404)
@@ -6,15 +6,27 @@
host = $${:host}
port = $${:port}
-[pipeline:main]
-pipeline = gzip grok
+[composite:main]
+use = egg:Paste#urlmap
+/ = pipeline_grok
+/resources = resource_publisher
-[app:grok]
-use = egg:grokcore.startup
+[pipeline:pipeline_grok]
+pipeline = gzip resource_injection grok
[filter:gzip]
use = egg:Paste#gzip
+[filter:resource_injection]
+use = egg:hurry.resource#inject
+publisher_prefix = /resources
+
+[app:grok]
+use = egg:grokcore.startup
+
+[app:resource_publisher]
+use = egg:hurry.resource#publisher
+
# Logging configuration
[loggers]
Modified: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/setup.py_tmpl
===================================================================
--- grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/setup.py_tmpl 2010-11-14 14:40:48 UTC (rev 118403)
+++ grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/setup.py_tmpl 2010-11-14 14:50:28 UTC (rev 118404)
@@ -22,7 +22,7 @@
'grok',
'grokui.admin',
'z3c.testsetup',
- 'hurry.resource[wsgi]',
+ 'hurry.resource[wsgi,publisher]',
'hurry.zoperesource',
'grokcore.startup',
# Add extra requirements here
Modified: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl
===================================================================
--- grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl 2010-11-14 14:40:48 UTC (rev 118403)
+++ grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl 2010-11-14 14:50:28 UTC (rev 118404)
@@ -7,5 +7,7 @@
<p>Your Grok application is up and running.
Edit <code>${package}/app_templates/index.pt</code> to change
this page.</p>
+
+ <img tal:attributes="src context/++resource++/evencaveman.jpg"/>
</body>
</html>
More information about the checkins
mailing list