[Checkins] SVN: bluebream/trunk/ Change 'defaultView' registration location and interface
Baiju M
baiju.m.mail at gmail.com
Sun Jan 10 00:38:10 EST 2010
Log message for revision 107974:
Change 'defaultView' registration location and interface
Changed:
U bluebream/trunk/CHANGES.txt
U bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/application.zcml_tmpl
U bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/configure.zcml_tmpl
-=-
Modified: bluebream/trunk/CHANGES.txt
===================================================================
--- bluebream/trunk/CHANGES.txt 2010-01-10 03:49:41 UTC (rev 107973)
+++ bluebream/trunk/CHANGES.txt 2010-01-10 05:38:09 UTC (rev 107974)
@@ -6,6 +6,7 @@
- Update version: zope.tales = 3.5.0
- LP #505362: Fix. Main package name is hard-coded as 'main'
+- Change 'defaultView' registration location and interface
0.1.6 (2010-01-07)
------------------
Modified: bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/application.zcml_tmpl
===================================================================
--- bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/application.zcml_tmpl 2010-01-10 03:49:41 UTC (rev 107973)
+++ bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/application.zcml_tmpl 2010-01-10 05:38:09 UTC (rev 107974)
@@ -1,7 +1,20 @@
<configure
i18n_domain="${namespace_package}.${main_package}"
- xmlns="http://namespaces.zope.org/zope">
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser">
+ <!-- The following registration (defaultView) register 'index' as
+ the default view for a container. The name of default view
+ can be chaged to a different value, for example, 'index.html'.
+ More details about defaultView registration is available here:
+ http://packages.python.org/bluebream/howto/defaultview.html
+ -->
+
+ <browser:defaultView
+ name="index"
+ for="zope.container.interfaces.IContainer"
+ />
+
<include package="${namespace_package}.${main_package}" />
</configure>
Modified: bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/configure.zcml_tmpl
===================================================================
--- bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/configure.zcml_tmpl 2010-01-10 03:49:41 UTC (rev 107973)
+++ bluebream/trunk/src/bluebream/project_template/src/+namespace_package+/+main_package+/configure.zcml_tmpl 2010-01-10 05:38:09 UTC (rev 107974)
@@ -2,16 +2,11 @@
i18n_domain="${namespace_package}.${main_package}"
xmlns="http://namespaces.zope.org/browser">
- <!-- The following two registrations (defaultView & page) are _not_
- required for functioning your application. These
- registrations are given to provide a default page when you
- access root folder from web like: http://localhost:8080/ -->
+ <!-- The following registration (page) is _not_ required for
+ functioning your application. This registration is given to
+ provide a default page when you access root folder from web
+ like: http://localhost:8080/ -->
- <defaultView
- name="index"
- for="zope.site.interfaces.IRootFolder"
- />
-
<page
for="zope.site.interfaces.IRootFolder"
name="index"
More information about the checkins
mailing list