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,
 globalname)
        theGlobal = find_global(newModulename, newGlobalname)
    return theGlobal

I hope this gets the correct indentation

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to