Changeset 69 for bug.py

Show
Ignore:
Timestamp:
03/28/07 08:38:40 (22 months ago)
Author:
ploum
Message:

Only display the comment form if you can actually post one.
It fixes #61 for now

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bug.py

    r38 r69  
    6666        def comNbr(self) : 
    6767                return len(self.comments) 
     68                 
     69        # Editable properties of the bug 
     70        def isCommentable(self) : 
     71                return self.commentable 
     72         
     73        def setCommentable(self,boolean) : 
     74                self.commentable = boolean 
    6875 
    6976         
     
    7885                self.assignee="" 
    7986                self.comments=[] 
     87                #editable 
     88                self.commentable = False 
    8089 
    8190class comment: