def make_index(name, localname):
 return type(('BB%sIndex' % (name.capitalize(),)), (BBIndex,), dict(name=name, localname=localname))

def make_index ( name , localname ) : return type ( ( 'BB%sIndex' % ( name . capitalize ( ) , ) ) , ( BBIndex , ) , dict ( name = name , localname = localname ) )
return string of the rst for the gallerys index .