[Checkins] SVN: bluebream/website/docs/v1.0/ - fix wrong ref
Baiju M
baiju.m.mail at gmail.com
Mon Jan 18 20:21:48 EST 2010
Log message for revision 108238:
- fix wrong ref
- expand tutorial
Changed:
U bluebream/website/docs/v1.0/gettingstarted.rst
U bluebream/website/docs/v1.0/tutorial1.rst
-=-
Modified: bluebream/website/docs/v1.0/gettingstarted.rst
===================================================================
--- bluebream/website/docs/v1.0/gettingstarted.rst 2010-01-18 21:38:27 UTC (rev 108237)
+++ bluebream/website/docs/v1.0/gettingstarted.rst 2010-01-19 01:21:47 UTC (rev 108238)
@@ -530,7 +530,7 @@
This chapter walked through the process of getting started with web
application development with BlueBream. Also introduced few simple
-``Hello World`` example applications. The :ref:`tut-tutorial`
+``Hello World`` example applications. The :ref:`tut1-tutorial`
chapter will go through a bigger application to introduce more
concepts.
Modified: bluebream/website/docs/v1.0/tutorial1.rst
===================================================================
--- bluebream/website/docs/v1.0/tutorial1.rst 2010-01-18 21:38:27 UTC (rev 108237)
+++ bluebream/website/docs/v1.0/tutorial1.rst 2010-01-19 01:21:47 UTC (rev 108238)
@@ -696,11 +696,10 @@
A view for adding collector
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Now the content component is ready to use. We need a web page from
-where we can add
+Now the content component is ready to use. You need a web page from
+where we can add the ticket collector. You can use ``zope.formlib``
+package to create a form::
-::
-
from zope.publisher.browser import BrowserView
from zope.container.interfaces import INameChooser
from zope.formlib import form
@@ -722,10 +721,14 @@
collector.description = description
name = namechooser.chooseName(name, collector)
self.context[name] = collector
- self.request.response.redirect(name)
+ self.request.response.redirect(".")
-::
+The ``createAndAdd`` function will be called when used submit *Add*
+button from web form.
+The last last thing you need to do is registering this view in ZCML.
+Add these lines to ``configure.zcml``::
+
<browser:page
for="zope.site.interfaces.IRootFolder"
name="add_ticket_collector"
More information about the checkins
mailing list