[Checkins] SVN: bluebream/trunk/ - Better description
Baiju M
baiju.m.mail at gmail.com
Sun Jan 10 21:35:44 EST 2010
Log message for revision 107998:
- Better description
- Extend tutorial
Changed:
U bluebream/trunk/README.txt
U bluebream/trunk/docs/source/tutorial.rst
-=-
Modified: bluebream/trunk/README.txt
===================================================================
--- bluebream/trunk/README.txt 2010-01-10 17:03:22 UTC (rev 107997)
+++ bluebream/trunk/README.txt 2010-01-11 02:35:43 UTC (rev 107998)
@@ -7,11 +7,13 @@
Introduction
------------
-`BlueBream <http://packages.python.org/bluebream>`_ makes it easy to
-setup a new project using Zope packages. BlueBream generates a
-project directory from a template called ``bluebream``. The template
-is created using `PasteScript
-<http://pythonpaste.org/script/developer.html>`_ by Ian Bicking.
+`BlueBream <http://packages.python.org/bluebream>`_ is a web
+framework written in Python programming language. BlueBream is the
+new name for "Zope 3". This package makes it easy to setup a new
+project using BlueBream. It generates a project directory from a
+template called ``bluebream``. The template is created using
+`PasteScript <http://pythonpaste.org/script/developer.html>`_ by Ian
+Bicking.
.. raw:: html
Modified: bluebream/trunk/docs/source/tutorial.rst
===================================================================
--- bluebream/trunk/docs/source/tutorial.rst 2010-01-10 17:03:22 UTC (rev 107997)
+++ bluebream/trunk/docs/source/tutorial.rst 2010-01-11 02:35:43 UTC (rev 107998)
@@ -191,8 +191,11 @@
You can create a file named ``src/tc/main/interfaces.py`` to add
interfaces::
+ from zope.container.interfaces import IContainer
+ from zope.schema import Text
+
class ICollector(IContainer):
- """Collector - the main application container object."""
+ """The main application container object."""
description = Text(
title=u"Description",
@@ -200,7 +203,20 @@
default=u"",
required=False)
+Then implement the interface in ``src/tc/main/ticketcollector.py``::
+ from zope.interface import implements
+ from zope.container.btree import BTreeContainer
+
+ from tc.main.interfaces import ICollector
+
+ class Collector(BTreeContainer):
+ """A simple implementation of a collector using B-Tree
+ Container."""
+
+ implements(ICollector)
+
+
Creating the main page
----------------------
More information about the checkins
mailing list