Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(4) | Call(4) | Derive(0) | Import(0)
src/b/a/babble.client-2.0/src/babble/client/tests/test_portlet.py babble.client(Download)
def afterSetUp(self): self.loginAsPortalOwner() view = self.app.unrestrictedTraverse('+/addChatService.html') view(add_input_name='chatservice', title='Chat Service', submit_add=1) self.portal.portal_chat.use_local_service = True
src/b/a/babble.client-2.0/src/babble/client/tests/test_index.py babble.client(Download)
# Create new user self.loginAsPortalOwner() self.create_user('user2', 'secret') self.login(name='user2')
# Even if this user is a site Administrators they should not self.loginAsPortalOwner() portal_groups = portal.portal_groups portal_groups.addPrincipalToGroup('user2', "Administrators")
src/b/a/babble.client-2.0/src/babble/client/tests/test_chat.py babble.client(Download)
# initialized self.logout() self.loginAsPortalOwner() member = self.mtool.getAuthenticatedMember()