def GetImplementationClass(kind_or_class_key):
 if isinstance(kind_or_class_key, tuple):
  try:
   implementation_class = polymodel._class_map[kind_or_class_key]
  except KeyError:
   raise db.KindError(("No implementation for class '%s'" % kind_or_class_key))
 else:
  implementation_class = db.class_for_kind(kind_or_class_key)
 return implementation_class

def GetImplementationClass ( kind_or_class_key ) : if isinstance ( kind_or_class_key , tuple ) : try : implementation_class = polymodel . _class_map [ kind_or_class_key ] except KeyError : raise db . KindError ( ( "No implementation for class '%s'" % kind_or_class_key ) ) else : implementation_class = db . class_for_kind ( kind_or_class_key ) return implementation_class
returns the implementation class for a given kind or class key .