[Zope-CVS] CVS: Packages/JobBoardI18n - JobCreateView.py:1.2
Guido van Rossum
guido@python.org
Mon, 17 Jun 2002 23:06:22 -0400
Update of /cvs-repository/Packages/JobBoardI18n
In directory cvs.zope.org:/tmp/cvs-serv4542
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.
=== Packages/JobBoardI18n/JobCreateView.py 1.1 => 1.2 ===
-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