Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 #
00002 # PloneTestCase interfaces
00003 #
00004 
00005 # $Id: interfaces.py 33456 2006-11-12 13:55:14Z shh42 $
00006 
00007 from Testing.ZopeTestCase.interfaces import *
00008 
00009 
00010 class IPloneSecurity(IPortalSecurity):
00011 
00012     def setGroups(groups, name=None):
00013         '''Changes the groups assigned to a user.
00014            If the 'name' argument is omitted, changes the
00015            groups of the default user.
00016         '''
00017 
00018     def loginAsPortalOwner():
00019         '''Logs in as the user owning the portal object.
00020            Use this when you need to manipulate the portal
00021            itself.
00022         '''
00023 
00024 
00025 class IPloneTestCase(IPortalTestCase):
00026 
00027     def addProfile(name):
00028         '''Imports an extension profile into the Plone site.
00029            This is an alternative to passing the 'extension_profiles'
00030            argument to 'setupPloneSite'.
00031         '''
00032 
00033     def addProduct(name):
00034         '''Quickinstalls a product into the Plone site.
00035            This is an alternative to passing the 'products'
00036            argument to 'setupPloneSite'.
00037         '''
00038