enabled is a boolean method now instead of a property.
svn path=/plone.app.discussion/trunk/; revision=27509
This commit is contained in:
		
							parent
							
								
									c135228419
								
							
						
					
					
						commit
						d25e2b80c4
					
				@ -50,12 +50,14 @@ class IConversation(IIterableMapping):
 | 
			
		||||
    (and acquisition parent) for all comments, regardless of threading.
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    enabled = schema.Bool(title=_(u"Is commenting enabled?"))
 | 
			
		||||
 | 
			
		||||
    total_comments = schema.Int(title=_(u"Total number of comments on this item"), min=0, readonly=True)
 | 
			
		||||
    last_comment_date = schema.Date(title=_(u"Date of the most recent comment"), readonly=True)
 | 
			
		||||
    commentators = schema.Set(title=_(u"The set of unique commentators (usernames)"), readonly=True)
 | 
			
		||||
 | 
			
		||||
    def enabled():
 | 
			
		||||
         """Return True if commenting enabled and False if not.
 | 
			
		||||
         """
 | 
			
		||||
 | 
			
		||||
    def addComment(comment):
 | 
			
		||||
        """Adds a new comment to the list of comments, and returns the
 | 
			
		||||
        comment id that was assigned. The comment_id property on the comment
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user