Index: waeup_product/trunk/Extensions/install.py
===================================================================
--- waeup_product/trunk/Extensions/install.py	(revision 49)
+++ waeup_product/trunk/Extensions/install.py	(revision 57)
@@ -52,6 +52,43 @@
                       'category' : 'object',
                       }
-            self.deleteActions({'portal_discussion': ['activate_comments',]})
+            self.deleteActions({'portal_subscriptions': ['activate_comments',]})
             self.verifyAction('portal_subscriptions', **action)
+            # now portal_discussion
+            self.deleteActions({'portal_discussion': ['comment',
+                                                      'activate_comments',
+                                                      'deactivate_comments',
+                                                      'manage_comments']})
+            action = {'id' : 'comment',
+                      'name': 'action_comment',
+                      'action': "string:${object/absolute_url}/post_comment",
+                      'condition' : "python:getattr(object.getContent(), 'allow_discussion' , None) and object.hasCommentAction()",
+                      'permission': (View,),
+                      'category' : 'object',
+                      }
+            self.verifyAction('portal_discussion', **action)
+            action = {'id' : 'activate_comments',
+                      'name': 'action_activate_comments',
+                      'action': "string:${object/absolute_url}/set_comment_mode?mode=1",
+                      'condition' : "python:getattr(object.getTypeInfo(),'cps_proxy_type','') in ('document', 'folderishdocument') and getattr(object.getContent(), 'allow_discussion' , None) == 1",
+                      'permission': (ForumManageComments,),
+                      'category' : 'object',
+                      }
+            self.verifyAction('portal_discussion', **action)
+            action = {'id' : 'deactivate_comments',
+                      'name': 'action_deactivate_comments',
+                      'action': "string:${object/absolute_url}/set_comment_mode?mode=0",
+                      'condition' : "python:getattr(object.getTypeInfo(),'cps_proxy_type','') in ('document', 'folderishdocument') and getattr(object.getContent(), 'allow_discussion' , None) == 1",
+                      'permission': (ForumManageComments,),
+                      'category' : 'object',
+                      }
+            self.verifyAction('portal_discussion', **action)
+            action = {'id' : 'manage_comments',
+                      'name': 'action_manage_comments',
+                      'action': "string:${object/absolute_url}/manage_comment",
+                      'condition' : "python:getattr(object.getTypeInfo(),'cps_proxy_type','') in ('document', 'folderishdocument') and getattr(object.getContent(), 'allow_discussion' , None) == 1",
+                      'permission': (ForumManageComments,),
+                      'category' : 'object',
+                      }
+            self.verifyAction('portal_discussion', **action)
         
         ##########################################
@@ -129,23 +166,4 @@
         self.verifyFlexibleTypes(dtypes)
         self.allowContentTypes('University', ('Workspace','Section',))
-        #self.allowContentTypes('Student', ('Workspace', 'Section'))
-##        ptypes = {
-##                  'University' : {
-##                  'allowed_content_types': ('StudentsFolder',),
-##                  'typeinfo_name': 'University',
-##                  'add_meta_type': 'Factory-based Type Information',
-##                  },
-##                  'StudentsFolder' : {
-##                  'allowed_content_types': ('Student',),
-##                  'typeinfo_name': 'StudentFolder',
-##                  'add_meta_type': 'Factory-based Type Information',
-##                  },
-##                  'Student' : {
-##                  'allowed_content_types': ('Jamb',),
-##                  'typeinfo_name': 'Student',
-##                  'add_meta_type': 'Factory-based Type Information',
-##                  },
-##                 }
-##        self.verifyContentTypes(ptypes)
         ##########################################
         # Schemas
