[Zope-CVS] CVS: Packages/JobBoardEx - JobCreateView.py:1.7 Tutorial.html:1.20

Guido van Rossum guido@python.org
Mon, 17 Jun 2002 17:23:02 -0400


Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv8246

Modified Files:
	JobCreateView.py Tutorial.html 
Log Message:
thanks.pt is not a view, so use PageTemplateFile instead of
ViewPageTemplateFile.

=== Packages/JobBoardEx/JobCreateView.py 1.6 => 1.7 ===
+from Zope.App.PageTemplate.ViewPageTemplateFile import PageTemplateFile
 from Zope.Publisher.Browser.BrowserView import BrowserView
 from Job import Job
 
@@ -8,7 +9,7 @@
 
     preview = ViewPageTemplateFile('preview.pt')
 
-    thanks = ViewPageTemplateFile('thanks.pt')
+    thanks = PageTemplateFile('thanks.pt')
 
     def create(self, submitter='', summary='', description='', contact=''):
         # Validation code should go here


=== Packages/JobBoardEx/Tutorial.html 1.19 => 1.20 ===
 template, <a href="thanks.pt">thanks.pt</a>, which displays a
 thank-you message and offers several links to continue browsing.
-(Note that this page template is not mentioned in configuration
-directives, since it is not used as a view by itself.)
+(Note that this page template is not a view.)
 
 <p>A more realistic create() method should include validation code,
 e.g. checking that all fields are filled in, and perhaps attempting