remove __of__ calls on views
This commit is contained in:
parent
0a2ef0c2d3
commit
bc2a9ac5d9
@ -31,7 +31,6 @@ class RegistryTest(unittest.TestCase):
|
|||||||
(self.portal, self.portal.REQUEST),
|
(self.portal, self.portal.REQUEST),
|
||||||
name='discussion-controlpanel'
|
name='discussion-controlpanel'
|
||||||
)
|
)
|
||||||
view = view.__of__(self.portal)
|
|
||||||
self.assertTrue(view())
|
self.assertTrue(view())
|
||||||
|
|
||||||
def test_discussion_in_controlpanel(self):
|
def test_discussion_in_controlpanel(self):
|
||||||
@ -163,7 +162,7 @@ class ConfigurationChangedSubscriberTest(unittest.TestCase):
|
|||||||
the 'comment_moderation' setting in the discussion control panel
|
the 'comment_moderation' setting in the discussion control panel
|
||||||
changes.
|
changes.
|
||||||
"""
|
"""
|
||||||
# By default the comment_one_state_workflow without moderation is
|
# By default the comment_one_state_workflow without moderation is
|
||||||
# enabled
|
# enabled
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
('comment_one_state_workflow',),
|
('comment_one_state_workflow',),
|
||||||
|
@ -34,7 +34,6 @@ class ModerationViewTest(unittest.TestCase):
|
|||||||
request = self.app.REQUEST
|
request = self.app.REQUEST
|
||||||
context = getattr(self.portal, 'doc1')
|
context = getattr(self.portal, 'doc1')
|
||||||
self.view = View(context, request)
|
self.view = View(context, request)
|
||||||
self.view.__of__(context)
|
|
||||||
self.portal.portal_workflow.setChainForPortalTypes(
|
self.portal.portal_workflow.setChainForPortalTypes(
|
||||||
('Discussion Item',), 'comment_review_workflow')
|
('Discussion Item',), 'comment_review_workflow')
|
||||||
self.wf_tool = self.portal.portal_workflow
|
self.wf_tool = self.portal.portal_workflow
|
||||||
|
Loading…
Reference in New Issue
Block a user