Table of Contents

Class: MountPoint Zope-2.2.1-src/lib/python/ZODB/Mount.py

The base class for a Zope object which, when traversed, accesses a different database.

Base Classes   
Persistence.Persistent
Acquisition.Implicit
Methods   
__init__
__of__
__openConnection
__repr__
_close
_createDB
_getDB
_getMountRoot
_logConnectException
_test
  __init__ 
__init__ (
        self,
        path,
        params=None,
        classDefsFromRoot=1,
        )

@arg path The path within the mounted database from which to derive the root.

@arg params The parameters used to connect to the database. No particular format required. If there is more than one mount point referring to a database, MountPoint will detect the matching params and use the existing database. Include the class name of the storage. For example, ZEO params might be "ZODB.ZEOClient localhost 1081".

@arg classDefsFromRoot If true (the default), MountPoint will try to get ZClass definitions from the root database rather than the mounted database.

  __of__ 
__of__ ( self,  parent )

  __openConnection 
__openConnection ( self,  parent )

Exceptions   
()
  __repr__ 
__repr__ ( self )

  _close 
_close ( self )

  _createDB 
_createDB ( self )

Gets the database object, usually by creating a Storage object and returning ZODB.DB(storage).

Exceptions   
'NotImplemented'
  _getDB 
_getDB ( self )

Creates or opens a DB object.

  _getMountRoot 
_getMountRoot ( self,  root )

Gets the object to be mounted. Can be overridden to provide different behavior.

Exceptions   
MountedStorageError
  _logConnectException 
_logConnectException ( self )

Records info about the exception that just occurred.

  _test 
_test ( self,  parent )

Tests the database connection.

Exceptions   
()

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6