Zope 2.12 compatibility: ViewPageTemplate's id property is read only
svn path=/plone.app.discussion/trunk/; revision=29203
This commit is contained in:
parent
06b332a801
commit
984a1fed7d
@ -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):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user