From 984a1fed7d6a05c52d5723f6573390b0dccee511 Mon Sep 17 00:00:00 2001 From: Carsten Senger Date: Thu, 20 Aug 2009 02:11:57 +0000 Subject: [PATCH] Zope 2.12 compatibility: ViewPageTemplate's id property is read only svn path=/plone.app.discussion/trunk/; revision=29203 --- plone/app/discussion/browser/moderation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index 3168c25..bef3b82 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -14,7 +14,11 @@ class View(BrowserView): """ template = ViewPageTemplateFile('moderation.pt') - template.id = '@@moderate-comments' + try: + template.id = '@@moderate-comments' + except AttributeError: + # id is not writeable in Zope 2.12 + pass def __call__(self):