Back to index

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

List of all members.

Public Member Functions

def __init__
def getSite
def getSetupTool
def getLogger
def writeDataFile

Private Attributes

 _site
 _tool
 _wrote
 _notes

Detailed Description

Definition at line 148 of file common.py.


Constructor & Destructor Documentation

def GenericSetup.tests.common.DummyExportContext.__init__ (   self,
  site,
  tool = None 
)

Definition at line 152 of file common.py.

00152 
00153     def __init__( self, site, tool=None ):
00154         self._site = site
00155         self._tool = tool
00156         self._wrote = []
00157         self._notes = []


Member Function Documentation

Definition at line 164 of file common.py.

00164 
00165     def getLogger(self, name):
00166         return DummyLogger(name, self._notes)

Definition at line 161 of file common.py.

00161 
00162     def getSetupTool( self ):
00163         return self._tool

Definition at line 158 of file common.py.

00158 
00159     def getSite( self ):
00160         return self._site

def GenericSetup.tests.common.DummyExportContext.writeDataFile (   self,
  filename,
  text,
  content_type,
  subdir = None 
)

Definition at line 167 of file common.py.

00167 
00168     def writeDataFile( self, filename, text, content_type, subdir=None ):
00169         if subdir is not None:
00170             filename = '%s/%s' % ( subdir, filename )
00171         self._wrote.append( ( filename, text, content_type ) )
00172 


Member Data Documentation

Definition at line 156 of file common.py.

Definition at line 153 of file common.py.

Definition at line 154 of file common.py.

Definition at line 155 of file common.py.


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