[Checkins] SVN: bluebream/website/docs/v1.0/tutorial2.rst ticket is a container object

Baiju M baiju.m.mail at gmail.com
Thu Mar 11 21:54:34 EST 2010


Log message for revision 109919:
  ticket is a container object
  

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-11 22:48:07 UTC (rev 109918)
+++ bluebream/website/docs/v1.0/tutorial2.rst	2010-03-12 02:54:33 UTC (rev 109919)
@@ -68,9 +68,7 @@
 for tickets.  Update the ``src/tc/main/interfaces.py`` with the ticket
 interface::
 
-  from zope.interface import Interface
-
-  class ITicket(Interface):
+  class ITicket(IContainer):
       """Ticket - the ticket content component"""
 
       number = TextLine(
@@ -147,7 +145,7 @@
   from zope.container.contained import Contained
 
 
-  class Ticket(Contained):
+  class Ticket(BTreeContainer, Contained):
 
       implements(ITicket, ITicketContained)
 
@@ -169,6 +167,9 @@
     <implements
        interface="zope.annotation.interfaces.IAttributeAnnotatable"
        />
+    <implements
+       interface="zope.container.interfaces.IContentContainer" 
+       />
     <require
        permission="zope.ManageContent"
        interface="tc.main.interfaces.ITicket"



More information about the checkins mailing list