def make_callable_template(key, typer, recvr=None):
 def generic(self):
  return typer
 name = ('%s_CallableTemplate' % (key,))
 bases = (CallableTemplate,)
 class_dict = dict(key=key, generic=generic, recvr=recvr)
 return type(name, bases, class_dict)

def make_callable_template ( key , typer , recvr = None ) : def generic ( self ) : return typer name = ( '%s_CallableTemplate' % ( key , ) ) bases = ( CallableTemplate , ) class_dict = dict ( key = key , generic = generic , recvr = recvr ) return type ( name , bases , class_dict )
create a callable template with the given key and typer function .