Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
GenericSetup.tests.common.DummyImportContext Class Reference

List of all members.

Public Member Functions

def __init__
def getSite
def getSetupTool
def getEncoding
def getLogger
def readDataFile
def shouldPurge

Private Attributes

 _site
 _tool
 _purge
 _encoding
 _files
 _notes

Detailed Description

Definition at line 173 of file common.py.


Constructor & Destructor Documentation

def GenericSetup.tests.common.DummyImportContext.__init__ (   self,
  site,
  purge = True,
  encoding = None,
  tool = None 
)

Definition at line 177 of file common.py.

00177 
00178     def __init__( self, site, purge=True, encoding=None, tool=None ):
00179         self._site = site
00180         self._tool = tool
00181         self._purge = purge
00182         self._encoding = encoding
00183         self._files = {}
00184         self._notes = []


Member Function Documentation

Definition at line 191 of file common.py.

00191 
00192     def getEncoding( self ):
00193         return self._encoding

Here is the caller graph for this function:

Definition at line 194 of file common.py.

00194 
00195     def getLogger(self, name):
00196         return DummyLogger(name, self._notes)

Definition at line 188 of file common.py.

00188 
00189     def getSetupTool( self ):
00190         return self._tool

Definition at line 185 of file common.py.

00185 
00186     def getSite( self ):
00187         return self._site

def GenericSetup.tests.common.DummyImportContext.readDataFile (   self,
  filename,
  subdir = None 
)

Definition at line 197 of file common.py.

00197 
00198     def readDataFile( self, filename, subdir=None ):
00199 
00200         if subdir is not None:
00201             filename = '/'.join( (subdir, filename) )
00202 
00203         return self._files.get( filename )

Definition at line 204 of file common.py.

00204 
00205     def shouldPurge( self ):
00206 
00207         return self._purge
00208 


Member Data Documentation

Definition at line 181 of file common.py.

Definition at line 182 of file common.py.

Definition at line 183 of file common.py.

Definition at line 180 of file common.py.

Definition at line 178 of file common.py.

Definition at line 179 of file common.py.


The documentation for this class was generated from the following file: