[Checkins] SVN: bluebream/website/docs/v1.0/tutorial2.rst divide section

Baiju M baiju.m.mail at gmail.com
Sun Mar 7 11:58:43 EST 2010


Log message for revision 109788:
  divide section
  

Changed:
  U   bluebream/website/docs/v1.0/tutorial2.rst

-=-
Modified: bluebream/website/docs/v1.0/tutorial2.rst
===================================================================
--- bluebream/website/docs/v1.0/tutorial2.rst	2010-03-07 16:45:42 UTC (rev 109787)
+++ bluebream/website/docs/v1.0/tutorial2.rst	2010-03-07 16:58:43 UTC (rev 109788)
@@ -30,13 +30,22 @@
 
 Before proceeding further, here is an overview of sections.
 
-- **Adding tickets** -- 
+- **Adding tickets** -- This section shows creating a ticket
+  collector objects.  This section provide a detailed overview of
+  creating content object and demonstrate with a simple example.
 
+- **Adding comments** -- This section explain about adding content
+  object inside other container objects.  Ticket objects will be
+  transformed to a container object.
+
 .. _tut2-adding-tickets:
 
 Adding tickets
 --------------
 
+Schema definition
+~~~~~~~~~~~~~~~~~
+
 In this section, you will learn about adding tickets to collector.
 In order to use ticket objects, first you need to create an interface
 for tickets.  Update the ``src/tc/main/interfaces.py`` with the ticket
@@ -76,6 +85,8 @@
 class.  Below, only one class (``ITicket``) is passed.  So, only
 ticket objects are allowed inside collector.
 
+::
+
     from zope.app.container.constraints import ItemTypePrecondition
 
     def __setitem__(name, object):
@@ -105,6 +116,9 @@
 Here you added a constraint for ``__parent__`` field using
 ``ContainerTypesConstraint`` class.
 
+Implementation
+~~~~~~~~~~~~~~
+
 Next, you can implement this interface inside ``ticket.py``::
 
   from zope.interface import implements
@@ -120,6 +134,9 @@
       number = u""
       summary = u""
 
+Configuration
+~~~~~~~~~~~~~
+
 Then, register the interface & class::
 
   <interface 
@@ -175,6 +192,10 @@
 Adding Comments
 ---------------
 
+.. warning::
+
+   This section is not completed.
+
 In this section, you will create `comment` objects and add it to
 tickets.  As the first step, you need to define the interface for the
 comments.  You can add this interface definition inside



More information about the checkins mailing list