Obey the 80 chars limit.
svn path=/plone.app.discussion/trunk/; revision=39570
This commit is contained in:
		
							parent
							
								
									d59369a408
								
							
						
					
					
						commit
						77d3bc2eb1
					
				@ -11,10 +11,14 @@ from Products.statusmessages.interfaces import IStatusMessage
 | 
				
			|||||||
from plone.app.discussion.interfaces import _
 | 
					from plone.app.discussion.interfaces import _
 | 
				
			||||||
from plone.app.discussion.interfaces import IComment
 | 
					from plone.app.discussion.interfaces import IComment
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Begin ugly hack. It works around a ContentProviderLookupError: plone.htmlhead error caused by Zope 2 permissions.
 | 
					# Begin ugly hack. It works around a ContentProviderLookupError: 
 | 
				
			||||||
 | 
					# plone.htmlhead error caused by Zope 2 permissions.
 | 
				
			||||||
# This error occured on Plone 3.3.x only!
 | 
					# This error occured on Plone 3.3.x only!
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Source: http://athenageek.wordpress.com/2008/01/08/contentproviderlookuperror-plonehtmlhead/
 | 
					# Source: 
 | 
				
			||||||
 | 
					# http://athenageek.wordpress.com/2008/01/08/
 | 
				
			||||||
 | 
					# contentproviderlookuperror-plonehtmlhead/
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
# Bug report: https://bugs.launchpad.net/zope2/+bug/176566
 | 
					# Bug report: https://bugs.launchpad.net/zope2/+bug/176566
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -96,7 +100,8 @@ class DeleteComment(BrowserView):
 | 
				
			|||||||
            _("Comment deleted."),
 | 
					            _("Comment deleted."),
 | 
				
			||||||
            type="info")
 | 
					            type="info")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)
 | 
					        return self.context.REQUEST.RESPONSE.redirect(
 | 
				
			||||||
 | 
					            self.context.REQUEST.HTTP_REFERER)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PublishComment(BrowserView):
 | 
					class PublishComment(BrowserView):
 | 
				
			||||||
    """Publish a comment
 | 
					    """Publish a comment
 | 
				
			||||||
@ -116,7 +121,9 @@ class PublishComment(BrowserView):
 | 
				
			|||||||
            _("Comment approved."),
 | 
					            _("Comment approved."),
 | 
				
			||||||
            type="info")
 | 
					            type="info")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)
 | 
					        return self.context.REQUEST.RESPONSE.redirect(
 | 
				
			||||||
 | 
					            self.context.REQUEST.HTTP_REFERER)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class BulkActionsView(BrowserView):
 | 
					class BulkActionsView(BrowserView):
 | 
				
			||||||
    """Bulk actions (unapprove, approve, delete, mark as spam).
 | 
					    """Bulk actions (unapprove, approve, delete, mark as spam).
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user