Table of Contents

Module: Extensions Zope-2.2.1-src/lib/python/App/Extensions.py

Imported modules   
import Products
import imp
import os
import rotor
from string import find, split
import zlib
Functions   
_getPath
getBrain
getObject
getPath
  _getPath 
_getPath (
        home,
        prefix,
        name,
        suffixes,
        )

Exceptions   
ValueError
  getBrain 
getBrain (
        module,
        class_name,
        reload=0,
        )

Check/load a class

Exceptions   
ValueError
  getObject 
getObject (
        module,
        name,
        reload=0,
        modules={},
        )

Exceptions   
"Module Error"
'Invalid Object Name'
  getPath 
getPath (
        prefix,
        name,
        checkProduct=1,
        suffixes=( '', ),
        )

Find a file in one of several relative locations

Arguments:

prefix

The location, relative to some home, to look for the file

name

The name of the file. This must not be a path.

checkProduct

a flag indicating whether product directories should be used as additional hope ares to be searched. This defaults to a true value.

If this is true and the name contains a dot, then the text before the dot is treated as a product name and the product package directory is used as anothe rhome.

suffixes

a sequences of file suffixes to check. By default, the name is used without a suffix.

The search takes on multiple homes which are INSTANCE_HOME, the directory containing the directory containing SOFTWARE_HOME, and possibly product areas.

Exceptions   
ValueError
Classes   
FuncCode
NoBrains

Table of Contents

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