def setUp(self): self.portal = self.layer['portal'] self.folder = self.portal self.p_diff = getToolByName(self.portal, 'portal_diff') cs = BaseChangeSet('my_changeset') # ChangeSet needs an acquisition wrapper self.cs = cs.__of__(self.portal)
def setUp(self): self.portal = self.layer['portal'] self.folder = self.portal self.p_diff = getToolByName(self.portal, 'portal_diff') cs = BaseChangeSet('my_changeset') # ChangeSet needs an acquisition wrapper self.cs = cs.__of__(self.portal) setRoles(self.portal, TEST_USER_ID, ['Contributor'])
def setUp(self): self.portal = self.layer["portal"] self.folder = self.portal self.p_diff = getToolByName(self.portal, "portal_diff") cs = BaseChangeSet("my_changeset") # ChangeSet needs an acquisition wrapper self.cs = cs.__of__(self.portal) setRoles(self.portal, TEST_USER_ID, ["Contributor"])
def afterSetUp(self): self.p_diff = getToolByName(self.portal, 'portal_diff') cs = BaseChangeSet('my_changeset') # ChangeSet needs an acquisition wrapper self.cs = cs.__of__(self.portal)
def afterSetUp(self): self.p_diff = self.portal.portal_diff cs = BaseChangeSet('my_changeset') # ChangeSet needs an acquisition wrapper self.cs = cs.__of__(self.portal)