# Add Entry from Products.CMFCore.CMFCorePermissions import * from Products.CMFCore.CMFCorePermissions import \ View, ModifyPortalContent, AccessContentsInformation, AddPortalContent security.declarePublic('AnswerExercise') AnswerExercise = 'Answer Exercise' setDefaultRoles(AnswerExercise, ('Manager','Student')) security.declarePublic('ModifyExercise') ModifyExercise = 'Modify Exercise' setDefaultRoles(ModifyExercise, ('Manager','Teacher')) security.declarePublic('CommentExercise') CommentExercise = 'Comment Exercise' setDefaultRoles(CommentExercise, ('Manager','Teacher')) security.declarePublic('ManageExercise') ManageExercise = 'Manage Exercise' setDefaultRoles(ManageExercise, ('Manager',)) security.declarePublic('AddLinkItem') AddLinkItem = 'Add LinkItem' setDefaultRoles(AddLinkItem, ('Manager','Teacher','Member'))