Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes
GenericSetup.context.BaseContext Class Reference
Inheritance diagram for GenericSetup.context.BaseContext:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.context.BaseContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getSite
def getSetupTool
def getEncoding
def getLogger
def listNotes
def clearNotes
def shouldPurge

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _tool
 _site
 _loggers
 _messages
 _encoding
 _should_purge

Detailed Description

Definition at line 124 of file context.py.


Constructor & Destructor Documentation

def GenericSetup.context.BaseContext.__init__ (   self,
  tool,
  encoding 
)

Reimplemented in GenericSetup.context.TarballExportContext.

Definition at line 128 of file context.py.

00128 
00129     def __init__( self, tool, encoding ):
00130 
00131         self._tool = tool
00132         self._site = aq_parent( aq_inner( tool ) )
00133         self._loggers = {}
00134         self._messages = []
00135         self._encoding = encoding
00136         self._should_purge = True


Member Function Documentation

See ISetupContext.

Definition at line 172 of file context.py.

00172 
00173     def clearNotes(self):
00174 
00175         """ See ISetupContext.
00176         """
00177         self._messages[:] = []
00178 

See ISetupContext.

Definition at line 152 of file context.py.

00152 
00153     def getEncoding( self ):
00154 
00155         """ See ISetupContext.
00156         """
00157         return self._encoding

Here is the caller graph for this function:

def GenericSetup.context.BaseContext.getLogger (   self,
  name 
)
See ISetupContext.

Reimplemented from GenericSetup.context.SetupEnviron.

Definition at line 159 of file context.py.

00159 
00160     def getLogger( self, name ):
00161         """ See ISetupContext.
00162         """
00163         return self._loggers.setdefault(name, Logger(name, self._messages))

See ISetupContext.

Definition at line 145 of file context.py.

00145 
00146     def getSetupTool( self ):
00147 
00148         """ See ISetupContext.
00149         """
00150         return self._tool

See ISetupContext.

Definition at line 138 of file context.py.

00138 
00139     def getSite( self ):
00140 
00141         """ See ISetupContext.
00142         """
00143         return aq_self(self._site)

See ISetupContext.

Definition at line 165 of file context.py.

00165 
00166     def listNotes(self):
00167 
00168         """ See ISetupContext.
00169         """
00170         return self._messages[:]

When installing, should the existing setup be purged?

Reimplemented in GenericSetup.context.SnapshotImportContext, and GenericSetup.context.TarballImportContext.

Definition at line 118 of file context.py.

00118 
00119     def shouldPurge(self):
00120         """When installing, should the existing setup be purged?
00121         """
00122         return self._should_purge
00123 


Member Data Documentation

Reimplemented in GenericSetup.context.SnapshotImportContext.

Definition at line 134 of file context.py.

Definition at line 132 of file context.py.

Definition at line 133 of file context.py.

Definition at line 131 of file context.py.

Definition at line 130 of file context.py.

tuple GenericSetup.context.BaseContext.security = ClassSecurityInfo() [static]

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