Argh, whitespace problems in mail editor. I'll try again

def myClassFactory(connection, modulename, globalname):
    # simplified, without error checking
    theGlobal = find_global(modulename, globalname)
    if issubclass(theGlobal, Broken):
        newModulename, newGlobalname = translateLocation(modulename,
        theGlobal = find_global(newModulename, newGlobalname)
    return theGlobal

I hope this gets the correct indentation

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -

Reply via email to