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.id = '@@moderate-comments'
 | 
			
		||||
    try:
 | 
			
		||||
        template.id = '@@moderate-comments'
 | 
			
		||||
    except AttributeError:
 | 
			
		||||
        # id is not writeable in Zope 2.12
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def __call__(self):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user