add globally_enabled option to the discussion plone control panel. add plone.app.discussion to the package dependencies.
svn path=/plone.app.discussion/trunk/; revision=27273
This commit is contained in:
		
							parent
							
								
									f27156e916
								
							
						
					
					
						commit
						57c534b5d3
					
				@ -11,9 +11,9 @@ class IDiscussionSettings(Interface):
 | 
			
		||||
    configuration registry and obtainable via plone.registry.
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    #globally_enabled = schema.Bool(title=_(u"Globally enabled"),
 | 
			
		||||
    #                               description=_(u"Use this setting to enable or disable comments globally"),
 | 
			
		||||
    #                               default=True)
 | 
			
		||||
    globally_enabled = schema.Bool(title=_(u"Globally enabled"),
 | 
			
		||||
                                   description=_(u"Use this setting to enable or disable comments globally"),
 | 
			
		||||
                                   default=True)
 | 
			
		||||
 | 
			
		||||
class IConversation(IIterableMapping):
 | 
			
		||||
    """A conversation about a content object.
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,6 @@
 | 
			
		||||
<metadata>
 | 
			
		||||
    <version>1</version>
 | 
			
		||||
 <version>1</version>
 | 
			
		||||
 <dependencies>
 | 
			
		||||
  <dependency>profile-plone.app.registry:default</dependency>
 | 
			
		||||
 </dependencies>
 | 
			
		||||
</metadata>
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
<?xml version="1.0"?>
 | 
			
		||||
<registry>
 | 
			
		||||
    <records interface="plone.app.discussion.interfaces.IDiscussionSettings" />
 | 
			
		||||
 <records interface="plone.app.discussion.interfaces.IDiscussionSettings" />
 | 
			
		||||
</registry>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user