This is a CHR and answer contact issue that I wanted to fix but have not had time.
I changed the
@action(_('Add Comment'), name='comment', condition=canAddComment)
def comment_action(self, action, data):
rule to always show when the user is login. The workflow tests did not break and this surprised me. You might be able to fix this bug with the addition of a test to verify that the button appears for all question states so long as the user is not logged in.
=== modified file 'lib/lp/answers/browser/question.py'
--- lib/lp/answers/browser/question.py 2009-07-17 00:26:05 +0000
+++ lib/lp/answers/browser/question.py 2009-08-19 16:33:26 +0000
@@ -641,9 +641,7 @@
Comments (message without a status change) can be added when the
question is solved or invalid
"""
- return (self.user is not None and
- self.context.status in [
- QuestionStatus.SOLVED, QuestionStatus.INVALID])
+ return (self.user is not None)
Hi Paul.
This is a CHR and answer contact issue that I wanted to fix but have not had time.
I changed the canAddComment) action( self, action, data):
@action(_('Add Comment'), name='comment', condition=
def comment_
rule to always show when the user is login. The workflow tests did not break and this surprised me. You might be able to fix this bug with the addition of a test to verify that the button appears for all question states so long as the user is not logged in.
=== modified file 'lib/lp/ answers/ browser/ question. py' answers/ browser/ question. py 2009-07-17 00:26:05 +0000 answers/ browser/ question. py 2009-08-19 16:33:26 +0000 SOLVED, QuestionStatus. INVALID] )
--- lib/lp/
+++ lib/lp/
@@ -641,9 +641,7 @@
Comments (message without a status change) can be added when the
question is solved or invalid
"""
- return (self.user is not None and
- self.context.status in [
- QuestionStatus.
+ return (self.user is not None)