[Checkins] SVN: bluebream/website/docs/v1.0/gettingstarted.rst simplify wordings
Baiju M
baiju.m.mail at gmail.com
Thu Mar 4 07:49:46 EST 2010
Log message for revision 109644:
simplify wordings
Changed:
U bluebream/website/docs/v1.0/gettingstarted.rst
-=-
Modified: bluebream/website/docs/v1.0/gettingstarted.rst
===================================================================
--- bluebream/website/docs/v1.0/gettingstarted.rst 2010-03-04 12:21:46 UTC (rev 109643)
+++ bluebream/website/docs/v1.0/gettingstarted.rst 2010-03-04 12:49:46 UTC (rev 109644)
@@ -376,17 +376,17 @@
--------------------------------------------
To create a web page which displays ``Hello World!``, you need to
-create a page and then register it using ``browser:page`` ZCML
-directive. In BlueBream, it is called as *Browser Page* or more
-generic term, *View* which can be used to refer XMLRPC, REST and
-other views. By default, the default page which you are getting when
-you access: http://localhost:8080 is a page registered like this. You
-can see the registration inside ``configure.zcml``, the name of view
-will be ``index``. You can access the default page by explicitly
-mentioning the page name in the URL like this:
-http://localhost:8080/@@index. You can refer the
-:ref:`howto-default-view` HOWTO for more details about how the
-default view for a container object is working.
+create a view class and register it using ``browser:page`` ZCML
+directive. In BlueBream, this is called as *Browser Page*.
+Sometimes more generic term, *View* is used instead of *Browser Page*
+which can be used to refer to HTTP, XMLRPC, REST and other views. By
+default, the default page which you are getting when you access:
+http://localhost:8080 is a page registered like this. You can see
+the registration inside ``configure.zcml``, the name of view will be
+``index``. You can access the default page by explicitly mentioning
+the page name in the URL like this: http://localhost:8080/@@index.
+You can refer the :ref:`howto-default-view` HOWTO for more details
+about how the default view for a container object is working.
First you need to create a Python file named ``myhello.py`` at
``src/mynamespace/main/myhello.py``::
@@ -411,11 +411,10 @@
Now you can register this page for a particular interface. So that
it will be available as a browser page for any object which implement
-this. At this point you can register this for root folder which is
-implementing ``zope.site.interfaces.IRootFolder`` interface.
+that particular interface. Now you can register this for the root
+folder, which is implementing ``zope.site.interfaces.IRootFolder``
+interface. So, the registration will be like this::
-So the registration could be like this::
-
<browser:page
for="zope.site.interfaces.IRootFolder"
name="hello"
@@ -430,7 +429,6 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">
-
You can add this configuration to:
``src/mynamespace/main/configure.zcml``. Now you can access the view
by visiting this URL: http://localhost:8080/@@hello
More information about the checkins
mailing list