[Zope-CVS] CVS: Packages/JobBoardEx - JobCreateView.py:1.9
Guido van Rossum
guido@python.org
Mon, 17 Jun 2002 23:51:11 -0400
Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv15757
Modified Files:
JobCreateView.py
Log Message:
Fix a mysterious traceback. Because I tried to use a non-View
PageTemplateFile for the "thanks" template, I was getting a raw TALES
interpreter instead of the Zope-i18n-ified one.
(Backport from JobBoardi18n; it seems wise to use ViewPageTemplateFile
here too.)
=== Packages/JobBoardEx/JobCreateView.py 1.8 => 1.9 ===
-from Zope.PageTemplate.PageTemplateFile import PageTemplateFile
from Zope.Publisher.Browser.BrowserView import BrowserView
from Job import Job
@@ -9,7 +8,7 @@
preview = ViewPageTemplateFile('preview.pt')
- thanks = PageTemplateFile('thanks.pt')
+ thanks = ViewPageTemplateFile('thanks.pt')
def create(self, submitter='', summary='', description='', contact=''):
# Validation code should go here