#NEWLINE# def __new__( mcs , name , bases , attrs ) : #NEWLINE# #INDENT# 'Create a new Collection class.' #NEWLINE# attrs . update ( api_path_prefix_format = COLLECTION_PATH_FORMAT ) #NEWLINE# model = attrs . get ( 'model' , None ) #NEWLINE# if ( ( attrs . get ( 'name' , None ) is None ) and ( model is not None ) ) : #NEWLINE# #INDENT# attrs . update ( name = model_name ( mcs ) ) #NEWLINE# #UNINDENT# return super ( CollectionMeta , mcs ) . __new__ ( mcs , name , bases , attrs )