Zope 2.12 compatibility: ViewPageTemplate's id property is read only

svn path=/plone.app.discussion/trunk/; revision=29203
This commit is contained in:
Carsten Senger 2009-08-20 02:11:57 +00:00
parent 06b332a801
commit 984a1fed7d

View File

@ -14,7 +14,11 @@ class View(BrowserView):
""" """
template = ViewPageTemplateFile('moderation.pt') template = ViewPageTemplateFile('moderation.pt')
try:
template.id = '@@moderate-comments' template.id = '@@moderate-comments'
except AttributeError:
# id is not writeable in Zope 2.12
pass
def __call__(self): def __call__(self):