[ZODB-Dev] Coping with Class Changes

Syver Enstad syver at inout.no
Fri Sep 8 05:28:21 EDT 2006


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



More information about the ZODB-Dev mailing list