This commit is contained in:
tisto 2012-01-14 07:35:59 +01:00
parent 2d4f7fd665
commit 2dc5393ff2
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,7 @@ from zope.publisher.interfaces.browser import IBrowserRequest
from plone.app.discussion.interfaces import IConversation from plone.app.discussion.interfaces import IConversation
class ConversationNamespace(object): class ConversationNamespace(object):
"""Allow traversal into a conversation via a ++conversation++name """Allow traversal into a conversation via a ++conversation++name
namespace. The name is the name of an adapter from context to namespace. The name is the name of an adapter from context to

View File

@ -64,6 +64,7 @@ class WorkflowSetupTest(unittest.TestCase):
def test_reply_to_item_permission(self): def test_reply_to_item_permission(self):
pass pass
class PermissionsSetupTest(unittest.TestCase): class PermissionsSetupTest(unittest.TestCase):
"""Make sure the permissions are set up properly. """Make sure the permissions are set up properly.
""" """
@ -124,7 +125,8 @@ class CommentOneStateWorkflowTest(unittest.TestCase):
'++conversation++default/%s' % cid) '++conversation++default/%s' % cid)
self.portal.acl_users._doAddUser('member', 'secret', ['Member'], []) self.portal.acl_users._doAddUser('member', 'secret', ['Member'], [])
self.portal.acl_users._doAddUser('reviewer', 'secret', ['Reviewer'], []) self.portal.acl_users._doAddUser(
'reviewer', 'secret', ['Reviewer'], [])
self.portal.acl_users._doAddUser('manager', 'secret', ['Manager'], []) self.portal.acl_users._doAddUser('manager', 'secret', ['Manager'], [])
self.portal.acl_users._doAddUser('editor', ' secret', ['Editor'], []) self.portal.acl_users._doAddUser('editor', ' secret', ['Editor'], [])
self.portal.acl_users._doAddUser('reader', 'secret', ['Reader'], []) self.portal.acl_users._doAddUser('reader', 'secret', ['Reader'], [])
@ -246,5 +248,6 @@ class CommentReviewWorkflowTest(unittest.TestCase):
self.assertEqual('pending', self.portal.portal_workflow.\ self.assertEqual('pending', self.portal.portal_workflow.\
getInfoFor(self.comment, 'review_state')) getInfoFor(self.comment, 'review_state'))
def test_suite(): def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__) return unittest.defaultTestLoader.loadTestsFromName(__name__)