[Checkins] SVN: grok/trunk/doc/tutorial.txt Include sample files from working tutorial, for the first tutorial

Martijn Faassen faassen at infrae.com
Fri Mar 16 16:45:39 EDT 2007


Log message for revision 73245:
  Include sample files from working tutorial, for the first tutorial
  section that has them. Now for all the other ones...
  

Changed:
  U   grok/trunk/doc/tutorial.txt

-=-
Modified: grok/trunk/doc/tutorial.txt
===================================================================
--- grok/trunk/doc/tutorial.txt	2007-03-16 20:40:38 UTC (rev 73244)
+++ grok/trunk/doc/tutorial.txt	2007-03-16 20:45:39 UTC (rev 73245)
@@ -205,12 +205,10 @@
 The actual code of the project will all be inside the ``src``
 directory. In it is a Python package directory called ``sample`` with
 the ``app.py`` file that grokproject said it would create. Let's look
-at this file::
+at this file:
 
-  import grok
-  
-  class Sample(grok.Application, grok.Container):
-      pass
+.. include:: groktut/an_empty_grok_project/src/sample/app.py
+   :literal:
 
 Not very much yet, but enough to make an installable Grok
 application. We'll go into the details of what this means later.
@@ -220,9 +218,10 @@
 
 What's left is a ``configure.zcml`` file. Unlike in typical Zope 3
 applications, this will only ever contain a single line that registers
-this application with Zope 3 which means we can completely ignore it::
+this application with Zope 3 which means we can completely ignore it:
 
-  <grok package="." xmlns="http://namespaces.zope.org/grok" />
+.. include:: groktut/an_empty_grok_project/src/sample/configure.zcml
+   :literal:
 
 Publishing a simple web page
 ----------------------------



More information about the Checkins mailing list